master
cn.yimian.xyz 3 years ago
parent eb03acf161
commit 1a3b6adbe3
  1. 20
      cn.yimian.xyz/nginx/nginx.conf
  2. 21
      home.yimian.xyz/nginx/nginx.conf

@ -41,24 +41,4 @@ http {
include /mnt/etc/common/nginx/conf.d/*.conf;
include /mnt/etc/cn.yimian.xyz/nginx/conf.d/*.conf;
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name _;
ssl_certificate "/mnt/config/ssl/yimian.xyz/yimian.xyz.crt";
ssl_certificate_key "/mnt/config/ssl/yimian.xyz/yimian.xyz.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
rewrite ^(.*)$ https://ushio.cool/;
}
}
}

@ -38,27 +38,6 @@ http {
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name _;
ssl_certificate "/mnt/config/ssl/yimian.xyz/yimian.xyz.crt";
ssl_certificate_key "/mnt/config/ssl/yimian.xyz/yimian.xyz.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
rewrite ^(.*)$ https://ushio.cool/;
}
}
include /mnt/etc/common/nginx/conf.d/*.conf;
include /mnt/etc/home.yimian.xyz/nginx/conf.d/*.conf;
}

Loading…
Cancel
Save