Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.3
-
Windows 10
-
da30f70fe (dev)
Description
When connecting to a web socket server via a ngnix proxy then it will fail to connect since it is not requesting the authentication and it will either fail with ProxyAuthenticationRequired or ProxyProtocolError.
To reproduce using the attached example which provides the proxy and a Python based websocket server then do the following:
- Modify the nginx.conf file in nginx-1.18.0/conf to have the right path for the auth_basic_user_file entry
- Modify the startnginx.bat file to have the right paths too
- Run "python setup.py install" in simple-websocket-server
- Run "python SimpleExampleServer.py" in simple-websocket-server/SimpleWebSocketServer
- Run startnginx.bat
- Build and run the example and try to connect to the server (the proxy is on 5000 and the server is 8000)
Note that this is setup for Windows, but you may be able to get it running easily enough on other platforms