Skip to content

Instantly share code, notes, and snippets.

@mguymon
Created June 11, 2013 14:05
Show Gist options
  • Save mguymon/5757114 to your computer and use it in GitHub Desktop.
Save mguymon/5757114 to your computer and use it in GitHub Desktop.
stunnel config for secure websockets (wss://)
key = /etc/certs/server.key
cert = /etc/certs/server.crt
CApath = /etc/ssl/certs
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
setuid = stunnel4
setgid = stunnel4
pid = /var/run/stunnel4/websocket.pid
debug = 4
output = /var/log/stunnel4/websocket.log
[websocket]
accept = 8676
connect = localhost:8675
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment