Experiencing WebSocket issues for a SignalR chat in the UI while running in production, but in locally it's working. We are using C# in the backend and React in the UI.
I have checked the server log. There is an SSL handshake issue. I used an SSL checker to check the validity of the SSL certificate.
However, I am unable to find the certificate and key path on the server. Where could be the certificate and key in the server folders? Please assist me to find it. Thanks in advance.
server configuration:
server{
listen 443;
location / {
proxy_pass http://my_app;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /chatHub {
proxy_pass http://my_app;
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;
# Configuration for ServerSent Events
proxy_buffering off;
# Configuration for LongPolling
proxy_read_timeout 100s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}