Strip headers when proxying errors to external service

This commit is contained in:
James Hoctor 2025-04-23 10:50:07 -04:00 committed by GitHub
parent 968cdc3204
commit 57157d944f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,6 +83,7 @@ Reverse proxy to a professional server that is highly qualified for handling HTT
handle_errors {
rewrite * /{err.status_code}
reverse_proxy https://http.cat {
header_up -*
header_up Host {upstream_hostport}
replace_status {err.status_code}
}