revproxy: update

pull/420/head
undefined 2 years ago
parent 00bc92a2e1
commit cd3f05d4d1

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

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