Skip to content

Instantly share code, notes, and snippets.

@jeffersonsouza
Created March 4, 2016 02:21
Show Gist options
  • Select an option

  • Save jeffersonsouza/5772f38015e8c7130421 to your computer and use it in GitHub Desktop.

Select an option

Save jeffersonsouza/5772f38015e8c7130421 to your computer and use it in GitHub Desktop.
upstream rancher {
server rancher:8080
}
server {
listen 80;
server_name <domain>;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://rancher;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment