Update nginx-prod.conf
This commit is contained in:
parent
a4b20791d5
commit
d5758f667e
@ -186,17 +186,10 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
if ($host = yourgols.com) {
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
} # managed by Certbot
|
|
||||||
|
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name yourgols.com;
|
server_name yourgols.com;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
@ -204,8 +197,9 @@ http {
|
|||||||
server_name yourgols.com;
|
server_name yourgols.com;
|
||||||
|
|
||||||
resolver 127.0.0.11 ipv6=off;
|
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-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
@ -216,7 +210,6 @@ http {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://yourgols-nginx:1238$request_uri;
|
proxy_pass http://yourgols-nginx:1238$request_uri;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user