Skip to content

Instantly share code, notes, and snippets.

@peerapach
Created November 9, 2018 05:39
Show Gist options
  • Save peerapach/fc65d810e437ab3a608111daa434cff4 to your computer and use it in GitHub Desktop.
Save peerapach/fc65d810e437ab3a608111daa434cff4 to your computer and use it in GitHub Desktop.
Example of TCP load balancing with Nginx (SSL Pass-thru)
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