core: handle reverse_proxy chains

This commit is contained in:
undefined committed 2022-09-05 23:53:48 +08:00
1 parent c58c0d8465
commit 3f337e41c3
5 files changed
+8 -7

No files matched your search

+2 -3
View File
@@ -1,7 +1,6 @@
hydro.ac {
reverse_proxy http://localhost:8888 {
header_up x-real-ip {remote_host}
# caddy now add x-forwarded-host automatically.
# header_up x-forwarded-host {hostport}
header_up x-forwarded-for {remote_host}
header_up x-forwarded-host {hostport}
}
}