Replace status code if proxying error to external service.

This commit is contained in:
Syahrial Agni Prasetya 2023-04-14 13:43:27 +07:00 committed by GitHub
parent 4411a7015d
commit 0cf251445d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,7 @@ handle_errors {
rewrite * /{err.status_code}
reverse_proxy https://http.cat {
header_up Host {upstream_hostport}
replace_status {err.status_code}
}
}
```