|
|
@@ -16,15 +16,23 @@ server {
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
}
|
|
|
|
|
|
- location /admin {
|
|
|
- rewrite ^/admin(/.*)$ $1 break;
|
|
|
- proxy_pass http://maxkb-web:8080;
|
|
|
+ location /admin/api/ {
|
|
|
+ proxy_pass http://maxkb-web:8080/api/;
|
|
|
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_set_header X-Forwarded-Proto $scheme;
|
|
|
}
|
|
|
|
|
|
+ location /admin/tool/ {
|
|
|
+ rewrite ^/admin(/.*)$ $1 break;
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /tool/ {
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
location /chat {
|
|
|
alias /usr/share/nginx/html/chat;
|
|
|
try_files $uri $uri/ /chat/index.html;
|