Files
sa-charts/docker-swarm-review/nginx-review-132/swarm/sites/review.conf
2026-05-13 15:27:25 +08:00

81 lines
2.1 KiB
Plaintext

# review 后端接口(原经 3.110 → 3.132:18092 中转,现直连网关)
server {
listen 80;
server_name interface.review.sino-assist.com apireview.sino-assist.com;
include /etc/nginx/ssl.sino_assist.conf;
location / {
proxy_pass http://192.168.3.132:28092;
proxy_set_header X-Forwarded-Host $server_name;
if ($request_filename ~ .*\.(htm|html)$) {
add_header Cache-Control no-cache;
}
}
location ~ .*actuator.* {
deny all;
}
}
# review 前端
server {
include /etc/nginx/ssl.sino_assist.conf;
server_name cc.review.sino-assist.com ccreview.sino-assist.com;
location /MP_verify_TyW3WkUF0gacMB4m.txt {
default_type text/html;
return 200 "TyW3WkUF0gacMB4m";
}
location /MP_verify_WjQInvWDvPvfZvL0.txt {
default_type text/html;
return 200 "WjQInvWDvPvfZvL0";
}
location /dev/h5/rescue/ {
proxy_pass http://192.168.1.209:8032/;
proxy_set_header X-Forwarded-Host $server_name;
client_max_body_size 200m;
}
location /m/ {
return 301 https://api1.sino-assist.com/base/shortUrlMappings/$request_uri;
}
location /m/dev- {
return 301 https://api.sinoassist.com/base/shortUrlMappings/$request_uri;
}
location / {
proxy_pass http://192.168.3.132:8081;
proxy_set_header X-Forwarded-Host $server_name;
if ($request_filename ~ .*\.(htm|html)$) {
add_header Cache-Control no-cache;
}
}
}
# http → https 跳转
server {
listen 80;
server_name cc.review.sino-assist.com ccreview.sino-assist.com;
add_header Strict-Transport-Security max-age=15768000;
return 301 https://ccreview.sino-assist.com$request_uri;
}
server {
listen 80;
server_name jenkins.sino-assist.com;
include /etc/nginx/ssl.sino_assist.conf;
location / {
proxy_pass http://192.168.3.120:8081;
proxy_set_header X-Forwarded-Host $server_name;
if ($request_filename ~ .*\.(htm|html)$) {
add_header Cache-Control no-cache;
}
}
}