[Solved] envionment variables in mod_wstunnel
Added by hwang over 6 years ago
Hi,
I'm trying to use the mod_wstunnel to redirect WebSocket traffic to a local socket server. It works well until I realized additional information is needed for the WebSocket server, such as cookies, remote address etc to determine if the incoming connection should be accepted. These things are dynamic so I can't put them into config files.
Is there a way to let an external program (via FCGI for example) decide if a WebSocket connection should be accepted? Or how could the socket sever get the same environment variables like in a libfcgi program?
Thanks.
Replies (2)
RE: [Solved] envionment variables in mod_wstunnel - Added by gstrauss over 6 years ago
Did you look in the documentation? https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI See FastCGI authorizer mode.
RE: [Solved] envionment variables in mod_wstunnel - Added by hwang over 6 years ago
Thanks for your information. I will take a look into that.