[mod] caddyfile
This commit is contained in:
parent
ec8c3f6b38
commit
322bf3170d
1
caddy/.dockerignore
Normal file
1
caddy/.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
/site
|
@ -3,27 +3,38 @@
|
||||
admin 0.0.0.0:2015
|
||||
email bunce.andy@gmail.com
|
||||
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
}
|
||||
|
||||
netdata.n2-plus.local {
|
||||
reverse_proxy n2-plus.local:9000
|
||||
}
|
||||
# quodatum
|
||||
*.quodatum.duckdns.org {
|
||||
tls {
|
||||
dns duckdns 428a1b3b-bc1d-4906-a230-9cd0a72fd06b
|
||||
}
|
||||
|
||||
code.n2-plus.local {
|
||||
reverse_proxy n2-plus.local:8443
|
||||
@git host git.quodatum.duckdns.org
|
||||
handle @git {
|
||||
reverse_proxy omv.local:8300
|
||||
}
|
||||
@wiki host wiki.quodatum.duckdns.org
|
||||
handle @git {
|
||||
reverse_proxy omv.local:8300
|
||||
}
|
||||
# Fallback for otherwise unhandled domains
|
||||
handle {
|
||||
abort
|
||||
}
|
||||
}
|
||||
code4.n2-plus.local {
|
||||
reverse_proxy n2-plus.local:8444
|
||||
# orlop
|
||||
*.orlop.duckdns.org {
|
||||
tls {
|
||||
dns duckdns 428a1b3b-bc1d-4906-a230-9cd0a72fd06b
|
||||
}
|
||||
@jellyfin host jellyfin.orlop.duckdns.org
|
||||
handle @jellyfin {
|
||||
reverse_proxy omv.local:8096
|
||||
}
|
||||
# Fallback for otherwise unhandled domains
|
||||
handle {
|
||||
abort
|
||||
}
|
||||
}
|
||||
|
||||
n2-plus.local {
|
||||
encode zstd gzip
|
||||
root links
|
||||
file_server browse
|
||||
}
|
||||
|
||||
fish.local {
|
||||
encode zstd gzip
|
||||
root .
|
||||
file_server browse
|
||||
}
|
13
caddy/DockerFile
Normal file
13
caddy/DockerFile
Normal file
@ -0,0 +1,13 @@
|
||||
# caddy with duckdns
|
||||
# @created 2022-03
|
||||
# author="Andy Bunce"
|
||||
|
||||
ARG VERSION=caddy:2.4.6
|
||||
FROM $VERSION AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/duckdns
|
||||
|
||||
FROM $VERSION
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
5
caddy/certs.sh
Normal file
5
caddy/certs.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# extract keys
|
||||
mkdir ~/backup
|
||||
|
||||
docker run --rm --volumes-from caddy -v `pwd`/backup:/backup ubuntu bash -c "cd /data && tar cvf /backup/caddy-data.tar ."
|
@ -2,7 +2,8 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2.4.6
|
||||
image: caddy-saffron:1.0.0
|
||||
build: .
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user