forked from exozyme/nginx
Use dnsmasq to resolve localhost dynamically
This commit is contained in:
parent
e0dd66f818
commit
5e9f1fc80d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue