调整文件路由
This commit is contained in:
parent
e0844bd024
commit
a3b99e35e8
|
@ -119,25 +119,25 @@ http {
|
|||
sub_filter 'https://sys-api:19902' 'https://$host:8001';
|
||||
sub_filter 'https://sys_api' 'https://$host:8001';
|
||||
}
|
||||
# UI前端路由
|
||||
location / {
|
||||
proxy_pass http://sys_ui;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location /upload/ {
|
||||
location ~*/Upload/ {
|
||||
proxy_pass https://sys_api/upload/;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_verify off;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
}
|
||||
|
||||
location /temporary_upload/ {
|
||||
location ~*/temporary_upload/ {
|
||||
proxy_pass https://sys_api/temporary_upload/;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_verify off;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
}
|
||||
# UI前端路由
|
||||
location / {
|
||||
proxy_pass http://sys_ui;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -163,13 +163,6 @@ http {
|
|||
proxy_ssl_verify off;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
}
|
||||
|
||||
# UI前端路由
|
||||
location /{
|
||||
proxy_pass http://lmg_ui/; # 注意末尾的/
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location /auth/ {
|
||||
# 关键 1: 移除路径中的 /auth/ 前缀
|
||||
proxy_pass https://sys_api/; # 末尾的 / 确保路径替换
|
||||
|
@ -209,18 +202,24 @@ http {
|
|||
proxy_set_header Authorization $http_authorization;
|
||||
}
|
||||
|
||||
location /upload/ {
|
||||
location ~*/upload/ {
|
||||
proxy_pass https://sys_api/upload/;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_verify off;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
}
|
||||
|
||||
location /temporary_upload/ {
|
||||
location ~*/temporary_upload/ {
|
||||
proxy_pass https://sys_api/upload/;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_verify off;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
}
|
||||
# UI前端路由
|
||||
location /{
|
||||
proxy_pass http://lmg_ui/; # 注意末尾的/
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue