revproxy: update

This commit is contained in:
undefined committed 2022-08-28 01:11:47 +08:00
1 parent 00bc92a2e1
commit cd3f05d4d1
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
hydro.ac {
reverse_proxy http://localhost:8888 {
header_up x-real-ip {remote_host}
header_up x-real-host {hostport}
# caddy now add x-forwarded-host automatically.
# header_up x-forwarded-host {hostport}
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}