diff --git a/frontend.nginx.conf b/frontend.nginx.conf index 63d4e1c..ec5d148 100644 --- a/frontend.nginx.conf +++ b/frontend.nginx.conf @@ -62,7 +62,26 @@ server { proxy_buffering off; } + location = /ws/supervisor/funnel { + set $platform_service http://platform-service:8000; + proxy_pass $platform_service/ws/supervisor/funnel$is_args$args; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + } + + location /assets/ { + add_header Cache-Control "public, max-age=31536000, immutable" always; + try_files $uri =404; + } + location / { + add_header Cache-Control "no-cache, no-store, must-revalidate" always; + add_header Pragma "no-cache" always; try_files $uri $uri/ /index.html; } } +