caddyfile tweaks

This commit is contained in:
John Lancaster
2025-12-28 14:16:21 -06:00
parent 40aa3e5466
commit 3e96cb6fd7
2 changed files with 3 additions and 8 deletions

View File

@@ -4,16 +4,11 @@
:8443 {
tls /certs/foo.crt /certs/foo.key {
protocols tls1.3
client_auth {
mode require_and_verify
trusted_ca_cert_file /certs/root_ca.crt
}
}
reverse_proxy rest-server:8000 {
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
}
reverse_proxy rest-server:8000
}

View File

@@ -5,7 +5,7 @@ services:
volumes:
- /mnt/restic:/data
environment:
- OPTIONS=--no-auth
OPTIONS: --no-auth
caddy:
image: caddy:alpine