Add Nginx configs and SSL certificates for fukun.net sites

This commit is contained in:
2026-05-24 11:46:25 +08:00
parent da85314601
commit 89e7ec40d5
20 changed files with 791 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# HTTP → HTTPS redirect
server {
listen 80;
server_name fukun.net www.fukun.net;
return 301 https://$host$request_uri;
}
# HTTPS
server {
listen 443 ssl http2;
server_name fukun.net www.fukun.net;
ssl_certificate /etc/nginx/ssl/fukun.net_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/fukun.net.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
root /home/hugo/hugo-blog/public;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}