server { listen 80; server_name ai.ytd-scm.com; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name ai.ytd-scm.com; ssl_certificate C:/nginx-1.18.0/cert/ai.ytd-scm.com.crt; ssl_certificate_key C:/nginx-1.18.0/cert/ai.ytd-scm.com.key; ssl_protocols TLSv1.2 TLSv1.3; root C:/yutongda/releases/admin-rel26-local-source-20260911d/frontend/dist; index index.html; location = / { add_header Cache-Control "no-store" always; try_files /index.html =404; } location = /index.html { add_header Cache-Control "no-store" always; } location = /_app.config.js { add_header Cache-Control "no-store" always; } location ^~ /node06-final-template-previews/ { try_files $uri =404; } location ^~ /node06-final-templates/ { try_files $uri =404; } location / { try_files $uri $uri/ /index.html; } location /jeecg-boot/ { proxy_pass http://127.0.0.1:8080/jeecg-boot/; 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 https; proxy_read_timeout 120s; } # The production frontend uses /jeecgboot while the Java context path is # /jeecg-boot. Keep the original route above for direct compatibility. location /jeecgboot/ { proxy_pass http://127.0.0.1:8080/jeecg-boot/; 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 https; proxy_read_timeout 120s; } location = /wecom/callback { proxy_pass http://127.0.0.1:8811/wecom/callback; 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 https; client_max_body_size 20m; } location = /wecom/robot/callback { proxy_pass http://127.0.0.1:8812/wecom/robot/callback; 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 https; client_max_body_size 100m; } location ^~ /inquiry-form/upload/ { proxy_pass http://127.0.0.1:8810/clarification-form/upload/; 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 https; add_header Cache-Control "no-store" always; client_max_body_size 21m; } location ^~ /inquiry-form/ { proxy_pass http://127.0.0.1:8810/clarification-form/; 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 https; add_header Cache-Control "no-store" always; client_max_body_size 256k; } location = /wecom/callback/health { proxy_pass http://127.0.0.1:8811/health; } location = /wecom/robot/health { proxy_pass http://127.0.0.1:8812/health; } }