Explorar el Código

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

添加/admin路由的重写规则,确保代理请求能正确传递到后端服务
DengPeng hace 3 semanas
padre
commit
79b0caca23
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      ui/nginx.conf

+ 1 - 0
ui/nginx.conf

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