Use dnsmasq to resolve localhost dynamically

This commit is contained in:
Anthony Wang 2022-04-02 18:52:02 -05:00
parent e0dd66f818
commit 5e9f1fc80d
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -10,7 +10,8 @@ server {
location / {
# Must use 127.0.0.1 here since it's resolved at runtime
# https://serverfault.com/questions/638505/nginx-dynamic-proxy-pass-doesnt-resolve-properly
proxy_pass http://127.0.0.1:420$1;
resolver 192.168.122.1;
proxy_pass http://localhost:420$1;
}
}