Created
November 9, 2018 05:39
-
-
Save peerapach/fc65d810e437ab3a608111daa434cff4 to your computer and use it in GitHub Desktop.
Example of TCP load balancing with Nginx (SSL Pass-thru)
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
#... | |
} | |
http { | |
# ... | |
} | |
stream { | |
upstream okd_master { | |
server okd-poc-1:8443; | |
server okd-poc-2:8443; | |
} | |
server { | |
listen 8443; | |
proxy_pass okd_master; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment