更新 nginx.conf.gateway
This commit is contained in:
parent
03b9653f3c
commit
1743431b2c
|
@ -150,7 +150,7 @@ http {
|
||||||
proxy_set_header Authorization $http_authorization;
|
proxy_set_header Authorization $http_authorization;
|
||||||
}
|
}
|
||||||
|
|
||||||
# UI前端路由(基础路径需配置为/lmg/)
|
# UI前端路由
|
||||||
location /lmg/ {
|
location /lmg/ {
|
||||||
proxy_pass http://lmg_ui/; # 注意末尾的/
|
proxy_pass http://lmg_ui/; # 注意末尾的/
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -194,7 +194,7 @@ http {
|
||||||
proxy_set_header Authorization $http_authorization;
|
proxy_set_header Authorization $http_authorization;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 根路径重定向到Lmg UI(可选)
|
# 根路径重定向到Lmg UI
|
||||||
location = / {
|
location = / {
|
||||||
return 301 /lmg/;
|
return 301 /lmg/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue