diff --git a/nginx.conf b/nginx.conf index 851ee08..8ec5b39 100644 --- a/nginx.conf +++ b/nginx.conf @@ -122,6 +122,24 @@ server { proxy_pass http://host.docker.internal:3000/; } + location /ws/ { + proxy_pass http://host.docker.internal:5050; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + + 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_read_timeout 86400; + } + + location /sweet-chat-api/ { + proxy_pass http://host.docker.internal:5051/; + } + location / { try_files $uri $uri/ =404; }