Created
September 19, 2016 10:38
-
-
Save uorat/cf81ebe15dfa0fb1f7a592cd64d7ce0c to your computer and use it in GitHub Desktop.
Nginx Reverse Proxy for WebSocket w/ SSL/TLS
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
--- nginx-websocket-proxy.conf.bk 2016-09-19 16:25:00.918484594 +0900 | |
+++ nginx-websocket-proxy.conf 2016-09-19 16:52:51.863111735 +0900 | |
@@ -3,9 +3,13 @@ | |
} | |
server { | |
- listen 80; | |
+ listen 443; | |
server_name localhost; | |
+ ssl on; | |
+ ssl_certificate /etc/pki/tls/certs/your.domain.nginx.crt; | |
+ ssl_certificate_key /etc/pki/tls/private/your.domain.key; | |
+ | |
access_log /var/log/nginx/websocket.access.log main; | |
location /socket.io/ { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment