Nginx Proxy & getRemoteAddress #702
-
Hello, Enjoying the library so far, its very fast and efficient while being easy to use. I have a problem where I have a Nginx proxy running in front of my server, and I am losing the ip address of the remote request on the websocket itself. My initial thought is to store it on the ws during the upgrade, but if there's an easier way that would be great! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to use |
Beta Was this translation helpful? Give feedback.
You need to use
upgrade
websocket handler, you can useres.getProxiedRemoteAddress
and store result on ws object, see #339 (comment)