浏览代码

fix(nginx): 修复/admin路由重写问题

添加/admin路由的重写规则,确保代理请求能正确传递到后端服务
DengPeng 2 周之前
父节点
当前提交
79b0caca23
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ui/nginx.conf

+ 1 - 0
ui/nginx.conf

@@ -17,6 +17,7 @@ server {
     }
 
     location /admin {
+        rewrite ^/admin(/.*)$ $1 break;
         proxy_pass http://maxkb-web:8080;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;