76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
server {
|
||
listen 80;
|
||
server_name api2.sino-assist.com interface.crm2.sino-assist.com;
|
||
|
||
include /etc/nginx/ssl.sino_assist.conf;
|
||
|
||
location /oss/minio/ {
|
||
proxy_set_header Host $http_host;
|
||
proxy_set_header REMOTE-HOST $remote_addr;
|
||
proxy_pass http://192.168.3.132:28773/oss/minio/;
|
||
}
|
||
|
||
location ~ .*actuator.* {
|
||
deny all;
|
||
}
|
||
|
||
location / {
|
||
proxy_pass http://192.168.1.209:8080;
|
||
proxy_set_header Host $host;
|
||
proxy_set_header X-Forwarded-Host $server_name;
|
||
if ($request_filename ~ .*\.(htm|html)$) {
|
||
add_header Cache-Control no-cache;
|
||
}
|
||
}
|
||
}
|
||
|
||
server {
|
||
listen 80;
|
||
server_name test-api-sh.do-dec.com test-api-nj.do-dec.com test-api-cd.do-dec.com test-api-wh.do-dec.com test-api-hz.do-dec.com;
|
||
|
||
location / {
|
||
proxy_pass http://192.168.1.209:8080;
|
||
proxy_set_header Host $host;
|
||
proxy_set_header X-Forwarded-Host $server_name;
|
||
if ($request_filename ~ .*\.(htm|html)$) {
|
||
add_header Cache-Control no-cache;
|
||
}
|
||
}
|
||
}
|
||
|
||
# cc.crm2 前端(https)
|
||
server {
|
||
include /etc/nginx/ssl.sino_assist.conf;
|
||
server_name cc.crm2.sino-assist.com crm2.sino-assist.com;
|
||
|
||
location / {
|
||
proxy_pass http://192.168.1.209:8081;
|
||
proxy_set_header Host $host;
|
||
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.crm2.sino-assist.com crm2.sino-assist.com;
|
||
return 301 https://$server_name$request_uri;
|
||
}
|
||
|
||
server {
|
||
listen 80;
|
||
server_name stomp2.sino-assist.com;
|
||
|
||
include /etc/nginx/ssl.sino_assist.conf;
|
||
|
||
location / {
|
||
proxy_pass http://192.168.1.209:15674;
|
||
proxy_set_header Upgrade $http_upgrade;
|
||
proxy_set_header Connection "upgrade";
|
||
proxy_http_version 1.1;
|
||
}
|
||
}
|