mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
update rev proxy example
This commit is contained in:
1 parent
5aee8d3552
commit
33211aa7dc
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -4,6 +4,6 @@ hosts:
|
||||
"*":
|
||||
paths:
|
||||
/:
|
||||
proxy.reverse.url: "http://[unix:/home/hydro/hydro.sock]"
|
||||
proxy.reverse.url: "http://localhost:8888"
|
||||
proxy.preserve-host: ON
|
||||
proxy.websocket: ON
|
||||
+2
-1
@@ -8,10 +8,11 @@ server {
|
||||
}
|
||||
|
||||
location @proxy_to_app {
|
||||
proxy_pass http://unix:/home/hydro/hydro.sock;
|
||||
proxy_pass http://localhost:8888;
|
||||
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-For $remote_addr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user