Skip to content

Instantly share code, notes, and snippets.

@dellis23
Created February 17, 2015 01:50
Show Gist options
  • Save dellis23/37b235548cccebb2b3ae to your computer and use it in GitHub Desktop.
Save dellis23/37b235548cccebb2b3ae to your computer and use it in GitHub Desktop.
nginx consul config
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
upstream primes {
{{range service "web"}}
server {{.Address}}:5000;{{end}}
}
server {
listen 80;
location / {
proxy_pass http://primes;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment