Last active
October 29, 2018 18:54
-
-
Save wakiyamap/c17b80215768fcfd4af29b008f8022b5 to your computer and use it in GitHub Desktop.
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
upstream websocket { | |
server localhost:9141; | |
} | |
server { | |
listen 443 ssl; | |
ssl on; | |
ssl_certificate /yourcertspath/certs/yourcert.pem; | |
ssl_certificate_key /yourcertspath/certs/yourcert.key; | |
server_name yoursitedomain.com; | |
location /socket.io/ { | |
proxy_pass https://websocket; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
location / { | |
proxy_pass https://[::]:9141; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment