|
|
@@ -4,10 +4,6 @@ server {
|
|
|
root /usr/share/nginx/html;
|
|
|
index index.html;
|
|
|
|
|
|
- location / {
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
- }
|
|
|
-
|
|
|
location /api {
|
|
|
proxy_pass http://maxkb-web:8080;
|
|
|
proxy_set_header Host $host;
|
|
|
@@ -16,7 +12,7 @@ server {
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
}
|
|
|
|
|
|
- location /admin {
|
|
|
+ location /admin/api {
|
|
|
proxy_pass http://maxkb-web:8080;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
@@ -24,9 +20,16 @@ server {
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
}
|
|
|
|
|
|
- location /chat {
|
|
|
- alias /usr/share/nginx/html/chat;
|
|
|
- try_files $uri $uri/ /chat/index.html;
|
|
|
+ location /admin/assets/ {
|
|
|
+ alias /usr/share/nginx/html/assets/;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /admin {
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /assets/ {
|
|
|
+ alias /usr/share/nginx/html/assets/;
|
|
|
}
|
|
|
|
|
|
location /chat/api {
|
|
|
@@ -37,6 +40,11 @@ server {
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
}
|
|
|
|
|
|
+ location /chat {
|
|
|
+ alias /usr/share/nginx/html/chat;
|
|
|
+ try_files $uri $uri/ /chat/index.html;
|
|
|
+ }
|
|
|
+
|
|
|
location /ws {
|
|
|
proxy_pass http://maxkb-web:8080;
|
|
|
proxy_http_version 1.1;
|
|
|
@@ -47,6 +55,10 @@ server {
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
}
|
|
|
|
|
|
+ location / {
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
gzip on;
|
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
}
|