75 lines
3.1 KiB
Plaintext
75 lines
3.1 KiB
Plaintext
# ai.ytd-scm.com cutover: Jeecg admin static + ledger 8180 + agent 8910
|
||
# /jeecgboot -> 新主账 8180(context-path /jeecgboot)
|
||
# /jeecg-boot -> 仍指现网 8080(旧路径兼容,正式前端不用)
|
||
# wecom / inquiry-form -> 8910
|
||
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 E:/wwwroot/admin/current;
|
||
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 / { 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;
|
||
}
|
||
location /jeecgboot/ {
|
||
proxy_pass http://127.0.0.1:8180/jeecgboot/;
|
||
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:8910/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:8910/inquiry-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 21m;
|
||
}
|
||
location ^~ /inquiry-form/ {
|
||
proxy_pass http://127.0.0.1:8910/inquiry-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:8910/health; }
|
||
location = /agent/health { proxy_pass http://127.0.0.1:8910/health; }
|
||
location = /ledger/health { proxy_pass http://127.0.0.1:8180/jeecgboot/; }
|
||
}
|