|
@@ -4,13 +4,24 @@ http {
|
|
|
server {
|
|
server {
|
|
|
listen 80;
|
|
listen 80;
|
|
|
server_name localhost;
|
|
server_name localhost;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
location / {
|
|
location / {
|
|
|
- proxy_pass http://ui:5173;
|
|
|
|
|
- proxy_set_header Host $host;
|
|
|
|
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
|
|
+ proxy_pass http://ui:5173;
|
|
|
|
|
+ proxy_set_header Host $host;
|
|
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
+ proxy_http_version 1.1;
|
|
|
|
|
+ proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
+ proxy_set_header Connection "upgrade";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ location /ws {
|
|
|
|
|
+ proxy_pass http://ui:5173;
|
|
|
|
|
+ proxy_set_header Host $host;
|
|
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
+ proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
+ proxy_set_header Connection "upgrade";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
location /api/ {
|
|
location /api/ {
|
|
|
rewrite ^/api/(.*) /$1 break;
|
|
rewrite ^/api/(.*) /$1 break;
|
|
|
proxy_pass http://gateway:8084;
|
|
proxy_pass http://gateway:8084;
|