nginx yourgols
This commit is contained in:
parent
7c702fa280
commit
a4b20791d5
@ -186,9 +186,16 @@ 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 {
|
||||
@ -197,9 +204,8 @@ http {
|
||||
server_name yourgols.com;
|
||||
|
||||
resolver 127.0.0.11 ipv6=off;
|
||||
|
||||
ssl_certificate /etc/allinvest/fullchain.pem;
|
||||
ssl_certificate_key /etc/allinvest/privkey.pem;
|
||||
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
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
@ -210,6 +216,7 @@ http {
|
||||
location / {
|
||||
proxy_pass http://yourgols-nginx:1238$request_uri;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user