update rev proxy example

pull/140/head
undefined 3 years ago
parent 5aee8d3552
commit 33211aa7dc

@ -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

@ -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;
}
}
Loading…
Cancel
Save