add trusted_proxies private_ranges (necessary for caddy 2.5.0+)

This commit is contained in:
Gerrit Gogel 2022-11-29 16:04:11 +01:00
parent 1a1e58c755
commit b9bf2a61e3

View file

@ -5,15 +5,20 @@
http:// https:// { http:// https:// {
reverse_proxy seahub:8000 { reverse_proxy seahub:8000 {
lb_policy header X-Forwarded-For lb_policy header X-Forwarded-For
trusted_proxies private_ranges
} }
handle_path /seafhttp* { handle_path /seafhttp* {
uri strip_prefix seafhttp uri strip_prefix seafhttp
reverse_proxy seafile-server:8082 reverse_proxy seafile-server:8082 {
trusted_proxies private_ranges
}
} }
reverse_proxy /seafdav* seafile-server:8080 { reverse_proxy /seafdav* seafile-server:8080 {
header_up Destination https:// http:// header_up Destination https:// http://
trusted_proxies private_ranges
} }
reverse_proxy /media/* seahub-media:80 { reverse_proxy /media/* seahub-media:80 {
lb_policy header X-Forwarded-For lb_policy header X-Forwarded-For
trusted_proxies private_ranges
} }
} }