mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-19 04:42:27 +08:00
将配置分离出来
This commit is contained in:
@@ -45,7 +45,7 @@ server {
|
|||||||
|
|
||||||
# 根证书 + 中间证书
|
# 根证书 + 中间证书
|
||||||
# https://imququ.com/post/why-can-not-turn-on-ocsp-stapling.html
|
# https://imququ.com/post/why-can-not-turn-on-ocsp-stapling.html
|
||||||
ssl_trusted_certificate /data/eiblog/conf/ssl/full_chained.pem;
|
ssl_trusted_certificate /data/eiblog/conf/ssl/full_chained.pem;
|
||||||
|
|
||||||
resolver 114.114.114.114 8.8.8.8 valid=300s;
|
resolver 114.114.114.114 8.8.8.8 valid=300s;
|
||||||
resolver_timeout 10s;
|
resolver_timeout 10s;
|
||||||
@@ -155,28 +155,3 @@ server {
|
|||||||
rewrite ^/(.*)$ https://deepzz.com/$1 permanent;
|
rewrite ^/(.*)$ https://deepzz.com/$1 permanent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# 博主原博客
|
|
||||||
server {
|
|
||||||
server_name blog.deepzz.com;
|
|
||||||
access_log /dev/null;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
rewrite ^/(.*)$ https://blog.deepzz.com/$1 permanent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443;
|
|
||||||
server_name blog.deepzz.com;
|
|
||||||
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000";
|
|
||||||
add_header X-Frame-Options deny;
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
|
||||||
add_header X-Xss-Protection "1; mode=block;";
|
|
||||||
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass https://127.0.0.1:9010;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
24
conf/nginx/domain/goblog.conf
Normal file
24
conf/nginx/domain/goblog.conf
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# 博主原博客
|
||||||
|
server {
|
||||||
|
server_name blog.deepzz.com;
|
||||||
|
access_log /dev/null;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
rewrite ^/(.*)$ https://blog.deepzz.com/$1 permanent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443;
|
||||||
|
server_name blog.deepzz.com;
|
||||||
|
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
add_header X-Frame-Options deny;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-Xss-Protection "1; mode=block;";
|
||||||
|
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass https://127.0.0.1:9010;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user