Files
inquiry_robot/deploy/ai.conf.cutover-8910
T

73 lines
2.9 KiB
Plaintext

# ai.ytd-scm.com cutover: agent 8910 + admin static under E:/wwwroot
# /jeecgboot still points to existing Java 8080
# wecom callback -> 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: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: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; }
}