You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
#===========大B的upstream配置======itaxAdmin对应的itax-admin服务ip和端口18101====itaxBaseApi对应的itax服务的ip和端口18100
|
|
upstream itaxAdmin {
|
|
server itax-admin-1.itax.local:18101;
|
|
}
|
|
upstream itaxBaseApi {
|
|
server itax-1.itax.local:18100;
|
|
}
|
|
|
|
|
|
|
|
location /itax-base {
|
|
alias /home/application/nginx/html/itax-base/;
|
|
index index.html index.htm login.html login.htm;
|
|
proxy_http_version 1.1;
|
|
}
|
|
location /itaxAdmin {
|
|
proxy_pass http://itaxAdmin/itax-admin;
|
|
}
|
|
location /wkt {
|
|
proxy_pass http://itaxAdmin/itax-admin;
|
|
}
|
|
location /itax {
|
|
proxy_pass http://itaxBaseApi/itax;
|
|
}
|
|
location /loginStatic {
|
|
proxy_pass http://itaxBaseApi/itax;
|
|
}
|
|
location /itax-sso {
|
|
proxy_pass http://itaxBaseApi/itax;
|
|
}
|
|
location /itax-base-api {
|
|
proxy_pass http://itaxBaseApi/itax;
|
|
}
|
|
location /socket {
|
|
proxy_pass http://itaxAdmin/itax-admin;
|
|
proxy_http_version 1.1;
|
|
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_read_timeout 50000s;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
} |