Replace localhost by loopback address in Nginx blocks
This commit is contained in:
parent
aac6bc62ea
commit
011243f863
@ -6,7 +6,7 @@ server {
|
|||||||
ssl_certificate_key /etc/ssl/cert.key;
|
ssl_certificate_key /etc/ssl/cert.key;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8080;
|
proxy_pass http://127.0.0.1:8080;
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ server {
|
|||||||
ssl_certificate_key /etc/ssl/cert.key;
|
ssl_certificate_key /etc/ssl/cert.key;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:9091;
|
proxy_pass http://127.0.0.1:9091;
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user