-
-
Save rjyo/977796 to your computer and use it in GitHub Desktop.
This file contains 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
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