| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # 订单发货管理工具 — shipping.mizentech.com
- # 80端口 强制跳转HTTPS
- server {
- listen 80;
- server_name shipping.mizentech.com;
- return 301 https://$host$request_uri;
- }
- # HTTPS 443
- server {
- listen 443 ssl;
- server_name shipping.mizentech.com;
- # SSL 证书(与主站同域名证书,放在同目录)
- ssl_certificate /etc/nginx/cert/shipping.mizentech.com.pem;
- ssl_certificate_key /etc/nginx/cert/shipping.mizentech.com.key;
- ssl_protocols TLSv1.2 TLSv1.3;
- ssl_prefer_server_ciphers on;
- ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 10m;
- ssl_session_tickets off;
- add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
- # 所有请求代理到 Node.js (端口3000)
- location / {
- proxy_pass http://127.0.0.1:3000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_cache_bypass $http_upgrade;
- proxy_connect_timeout 60s;
- }
- # 文件上传大小限制(导入Excel)
- client_max_body_size 20M;
- }
|