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

@ -14,7 +14,11 @@ server_name = 'localhost'
reverse_proxy = [
# default destination if path is not specified
# Array for load balancing
{ upstream = [{ location = 'backend-nginx', tls = false }] },
{ upstream = [
{ location = 'backend-nginx', tls = false, upstream_options = [
"override_host",
] },
] },
# { upstream = [{ location = '192.168.100.100', tls = false }] },
]