2
0

feat:添加https访问

This commit is contained in:
caiyuchao
2025-04-01 18:07:33 +08:00
parent 4b00b3f828
commit 4f623317c8
5 changed files with 54 additions and 1 deletions

View File

@@ -19,8 +19,21 @@ http {
client_max_body_size 5m;
server {
listen 80;
listen 80;
server_name localhost;
return 301 https://$host$request_uri; # 将HTTP请求重定向到HTTPS
}
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /opt/wfc/ssl/server.crt;
ssl_certificate_key /opt/wfc/ssl/server.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 120m;
ssl_prefer_server_ciphers on;
ssl_session_tickets off;
ssl_stapling_verify on;
location /kyc {
alias /opt/wfc/file/upload;