nginx yourgols
This commit is contained in:
parent
7c702fa280
commit
a4b20791d5
@ -186,10 +186,17 @@ 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;
|
||||||
@ -197,9 +204,8 @@ 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 /etc/allinvest/fullchain.pem;
|
ssl_certificate_key /etc/letsencrypt/live/yourgols.com/privkey.pem; # managed by Certbot
|
||||||
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;
|
||||||
@ -210,6 +216,7 @@ 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