Private
Public Access
2
0

caddy: add site.no_upsream_host
Some checks failed
Publish collection to Galaxy / publish (push) Has been cancelled

This commit is contained in:
2026-06-08 14:41:47 +02:00
parent 65086fccc5
commit 272d0988da
3 changed files with 7 additions and 0 deletions

View File

@@ -152,6 +152,11 @@
reverse_proxy {
to {{ path.addrs | join(' ') }}
header_up X-Real-IP {remote}
{% if site.no_upstream_host | default(caddy_sites_defaults.site_no_upstream_host) %}
header_up Host {hostport}
{% else %}
header_up Host {upstream_hostport}
{% endif %}
lb_policy {{ site.proxy_lb_policy | default(caddy_sites_defaults.proxy_lb_policy) }}
{% if site.proxy_active_checks | default(caddy_sites_defaults.proxy_active_checks) %}