Update forward_auth.md example (#428)

request_header doesn't seem to accept multiple headers at a time.
This commit is contained in:
Serban Teodorescu 2024-10-28 18:32:25 +02:00 committed by GitHub
parent 59a848c26d
commit e9db589e6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,11 +94,9 @@ reverse_proxy <upstreams...> {
# On a successful response, copy response headers
@good status 2xx
handle_response @good {
request_header {
# for example, for each copy_headers field...
Remote-User {rp.header.Remote-User}
Remote-Email {rp.header.Remote-Email}
}
# for example, for each copy_headers field...
request_header Remote-User {rp.header.Remote-User}
request_header Remote-Email {rp.header.Remote-Email}
}
}
```