Replace localhost by loopback address in Nginx blocks

This commit is contained in:
Alexandre CATTEAU 2022-11-11 12:36:33 +01:00
parent aac6bc62ea
commit 011243f863
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ server {
ssl_certificate_key /etc/ssl/cert.key;
location / {
proxy_pass http://localhost:8080;
proxy_pass http://127.0.0.1:8080;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
}
}

View File

@ -6,7 +6,7 @@ server {
ssl_certificate_key /etc/ssl/cert.key;
location / {
proxy_pass http://localhost:9091;
proxy_pass http://127.0.0.1:9091;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
}
}