44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
# http → https 跳转
|
|
server {
|
|
listen 80;
|
|
server_name uat.sino-assist.com api-uat.sino-assist.com api-pre.sino-assist.com;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
server_name uat.sino-assist.com api-uat.sino-assist.com api-pre.sino-assist.com;
|
|
|
|
include /etc/nginx/ssl.sino_assist.conf;
|
|
|
|
location / {
|
|
proxy_cookie_path / "/; HttpOnly; Secure; SameSite=Strict";
|
|
proxy_pass http://192.168.3.126: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;
|
|
}
|
|
}
|
|
|
|
location /h5/supplier/dispatch {
|
|
proxy_pass http://192.168.3.126:8031/h5/supplier/dispatch;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
client_max_body_size 200m;
|
|
}
|
|
|
|
location /h5/client {
|
|
proxy_pass http://192.168.3.126:8032/h5/client;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
client_max_body_size 200m;
|
|
}
|
|
|
|
location /dev/h5/rentCar {
|
|
proxy_pass http://192.168.3.126:8034/dev/h5/rentCar;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
client_max_body_size 200m;
|
|
}
|
|
}
|