add request header override option

This commit is contained in:
Jun Kurihara 2022-07-06 17:40:45 +09:00
commit b0a9b6b5f8
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
10 changed files with 104 additions and 18 deletions

View file

@ -37,10 +37,14 @@ reverse_proxy = [
{ upstream = [
{ location = 'www.google.com', tls = true },
{ location = 'www.google.co.jp', tls = true },
], upstream_options = [
"override_host",
] },
{ path = '/maps', upstream = [
{ location = 'www.bing.com', tls = true },
{ location = 'www.bing.co.jp', tls = true },
], upstream_options = [
"override_host",
] },
]
# Optional: TLS setting. if https_port is specified and tls is true above, this must be given.