1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-18 08:05:02 +00:00

create dns.keiu.net

This commit is contained in:
Nebel 2021-08-18 19:26:59 +09:00
parent 0e614d758a
commit b1353e36f4
3 changed files with 14 additions and 0 deletions

View file

@ -35,6 +35,13 @@ services:
volumes:
- postgres_tmp:/var/run/postgresql
- postgres_data:/var/lib/postgresql/data
dns.keiu.net:
image: coredns/coredns:1.8.4
restart: unless-stopped
expose: ["443"]
volumes:
- ./etc/coredns/Corefile:/Corefile
- caddy_data:/var/lib/caddy/data
volumes:
caddy_data:
caddy_config:

View file

@ -7,3 +7,6 @@ www.keiu.net {
minicharge.keiu.net {
reverse_proxy unix//tmp/minicharge/miniflux.sock
}
dns.keiu.net {
reverse_proxy https://dns.keiu.net
}

4
etc/coredns/Corefile Normal file
View file

@ -0,0 +1,4 @@
https://. {
tls /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/dns.keiu.net/dns.keiu.net.crt /var/lib/caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/dns.keiu.net/dns.keiu.net.key
forward . /etc/resolv.conf
}