refactor: separeted forwarder definition for more flexibility

This commit is contained in:
Jun Kurihara 2023-08-08 17:59:20 +09:00
commit 43b004cf6e
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
5 changed files with 84 additions and 15 deletions

View file

@ -56,7 +56,10 @@ upstream = [
{ location = 'www.yahoo.co.jp', tls = true },
]
load_balance = "round_robin" # or "random" or "sticky" (sticky session) or "none" (fix to the first one, default)
upstream_options = ["override_host", "convert_https_to_2"]
upstream_options = [
"override_host",
"force_http2_upstream", # mutually exclusive with "force_http11_upstream"
]
# Non-default destination in "localhost" app, which is routed by "path"
[[apps.localhost.reverse_proxy]]