Use 127.0.0.1 for exopages port proxy instead of resolving localhost using dnsmasq

This commit is contained in:
Anthony Wang 2023-01-18 00:32:13 +00:00
parent 2af129dfd9
commit 1593310a1e
Signed by: a
GPG Key ID: 42A5B952E6DD8D38

View File

@ -9,8 +9,7 @@ server {
location / {
# https://serverfault.com/questions/638505/nginx-dynamic-proxy-pass-doesnt-resolve-properly
resolver 192.168.122.1;
proxy_pass http://localhost:420$1;
proxy_pass http://127.0.0.1:420$1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;