-
-
Save hcm82/bff28d681445413e39f6ad58b5588a24 to your computer and use it in GitHub Desktop.
using nginx as a websocket reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
chunked_transfer_encoding off; | |
proxy_http_version 1.1; | |
proxy_pass http://localhost:9001; | |
proxy_buffering off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host:9001; | |
proxy_set_header Connection "Upgrade"; | |
proxy_set_header Upgrade websocket; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment