0👍
✅
The wss
presumes an encrypted WebSocket connection using TLS. If wss://host:8081
works, then your node.js listens for encrypted connections. But you have configured nginx for TLS termination and proxying unencrypted data.
Source:stackexchange.com