Update nginx-prod.conf

This commit is contained in:
Egor Matveev 2023-11-24 07:33:53 +00:00
parent a4b20791d5
commit d5758f667e

View File

@ -186,17 +186,10 @@ http {
}
server {
if ($host = yourgols.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name yourgols.com;
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
@ -204,8 +197,9 @@ http {
server_name yourgols.com;
resolver 127.0.0.11 ipv6=off;
ssl_certificate /etc/letsencrypt/live/yourgols.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/yourgols.com/privkey.pem; # managed by Certbot
ssl_certificate /etc/allinvest/fullchain.pem;
ssl_certificate_key /etc/allinvest/privkey.pem;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
@ -216,7 +210,6 @@ http {
location / {
proxy_pass http://yourgols-nginx:1238$request_uri;
}
}
}
}
}