diff options
author | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-05-26 18:46:56 +0200 |
---|---|---|
committer | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-05-26 18:46:56 +0200 |
commit | 38a854dc3ece83de35118bed8786ca9f59fd963b (patch) | |
tree | 477c24b51f227d84c70f6bc6f2a805fc694106e3 /templates | |
parent | Don't expose prometheus (diff) |
Change localhost to IPv4 one
Diffstat (limited to 'templates')
-rw-r--r-- | templates/nginx.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 7220a38..1f6c71a 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -25,7 +25,7 @@ server { {% endif %} {% if server.proxy is defined %} - proxy_pass http://{{server.proxy.host|default("localhost")}}:{{server.proxy.port|default("80")}}; + proxy_pass http://{{server.proxy.host|default("127.0.0.1")}}:{{server.proxy.port|default("80")}}; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; |