[Solved] envionment variables in mod_wstunnel
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?
RE: [Solved] envionment variables in mod_wstunnel - Added by gstrauss 6 months ago
Did you look in the documentation? https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI See FastCGI authorizer mode.