chore(nginx): add white label route + add websockets support for frontend

This commit is contained in:
leandrofars 2024-07-08 11:55:44 -03:00
parent 1ac139134b
commit fd33b2e291

View File

@ -15,6 +15,12 @@ server {
proxy_read_timeout 60; proxy_read_timeout 60;
proxy_connect_timeout 60; proxy_connect_timeout 60;
proxy_redirect off; proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
} }
location /api { location /api {
proxy_pass http://host.docker.internal:8000; proxy_pass http://host.docker.internal:8000;
@ -22,6 +28,12 @@ server {
proxy_connect_timeout 60; proxy_connect_timeout 60;
proxy_redirect off; proxy_redirect off;
} }
location /custom-frontend {
proxy_pass http://host.docker.internal:8005;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
}
location /socket.io { location /socket.io {
proxy_pass http://host.docker.internal:5000; proxy_pass http://host.docker.internal:5000;
proxy_read_timeout 60; proxy_read_timeout 60;