diff --git a/frontend/nginx/sites.d/frontend.conf b/frontend/nginx/sites.d/frontend.conf index 41fab762..e064f691 100755 --- a/frontend/nginx/sites.d/frontend.conf +++ b/frontend/nginx/sites.d/frontend.conf @@ -12,8 +12,22 @@ location /manifest.json { proxy_pass http://backend:3000/manifest.json; } +location /socket.io/ { + proxy_pass http://backend:3000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; +} + +location /backend/public/ { + add_header Content-Disposition 'attachment'; + alias /var/www/backend-public/; + include include.d/allcache.conf; +} + location /backend/ { - rewrite ^/backend/(.*) /public/$1 break; + rewrite ^/backend/(.*) /$1 break; proxy_pass http://backend:3000; }