|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|