added caddy mtls proxy

This commit is contained in:
John Lancaster
2025-12-28 14:13:02 -06:00
parent c5cb23951d
commit 40aa3e5466
2 changed files with 31 additions and 4 deletions

19
Caddyfile Normal file
View File

@@ -0,0 +1,19 @@
{
debug
}
:8443 {
tls /certs/foo.crt /certs/foo.key {
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}
}
}