diff --git a/reverse-proxy/gen-caddyfile.py b/reverse-proxy/gen-caddyfile.py index 8529e37..cd7fba3 100755 --- a/reverse-proxy/gen-caddyfile.py +++ b/reverse-proxy/gen-caddyfile.py @@ -165,8 +165,10 @@ def should_protect(self) -> bool: {{subdomain}}.{$FQDN}:80, {{subdomain}}.{$FQDN}:443 { tls internal log - reverse_proxy files:80 - rewrite * /{{folder}}/{path}?{query} + reverse_proxy files:80 { + rewrite /{{folder}}/{path}?{query} + header_up Host {upstream_hostport} + } handle_errors { respond "HTTP {http.error.status_code} Error ({http.error.message})" }