mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
revproxy: update
This commit is contained in:
1 parent
00bc92a2e1
commit
cd3f05d4d1
2 files changed
+3
-2
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
hydro.ac {
|
hydro.ac {
|
||||||
reverse_proxy http://localhost:8888 {
|
reverse_proxy http://localhost:8888 {
|
||||||
header_up x-real-ip {remote_host}
|
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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@ server {
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_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;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user