Open
Description
Hi, currently im using azure container apps for our application deployment with dapr we are using react as frontend and nodejs as backend. hear im facing a issue with websocket invoke all the api's are working fine but websocket connections are not working fine, the connection is getting created but in next few seconds its getting disconnected. below is config file of nginx where routing is configured
server {
listen 5002;
listen [::]:5002;
server_name default_server;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}
location /ws {
proxy_pass http://localhost:3500/v1.0/invoke/backend/method/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /api/v1 {
proxy_pass http://localhost:3500/v1.0/invoke/backend/method/api/v1;
}