use 127.0.0.1 in nginx config (#22907)

This commit is contained in:
Emmanuel Cazenave 2018-03-29 17:57:42 +02:00 committed by Thomas NOEL
parent 65bd6387cb
commit 916783e6e6
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ server {
{% block middle %}{% endblock %}
location / {
proxy_pass http://localhost:{{server_port}};
proxy_pass http://127.0.0.1:{{server_port}};
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-SSL on;
proxy_set_header X-Forwarded-Protocol ssl;

View File

@ -24,7 +24,7 @@ server {
}
location / {
proxy_pass http://localhost:{{server_port}};
proxy_pass http://127.0.0.1:{{server_port}};
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-SSL on;
proxy_set_header X-Forwarded-Protocol ssl;