Skip to content

Instantly share code, notes, and snippets.

@rjyo
Forked from saimonmoore/gist:974229
Created May 18, 2011 00:58
Show Gist options
  • Save rjyo/977796 to your computer and use it in GitHub Desktop.
Save rjyo/977796 to your computer and use it in GitHub Desktop.
Setup
=====
[stunnel acccept port 443 connect 8443]
||
[haproxy
* accept port 80
default: connect 8080 (nginx)
host: 'push.*' => connect 8090 (node)
* accept port 8443
default: x-forwarded-proto: 'https' => connect 8444 (nginx)
host: 'push.*' + x-forwarded-proto: 'https' => connect 8090 (node)]
|| ||
[node accept port 8090] [nginx accept port 8080 && 8444]
Configs
=======
stunnel: https://github.com/nedap/stunnel
stunnel conf: https://gist.github.com/cc076e8d6e85ef1e0827
haproxy conf: https://gist.github.com/a3a73f3f22e978b930dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment