Skip to content

Instantly share code, notes, and snippets.

@ndelitski
Created October 11, 2015 23:15
Show Gist options
  • Select an option

  • Save ndelitski/e22bbfcdef5b98a7e9df to your computer and use it in GitHub Desktop.

Select an option

Save ndelitski/e22bbfcdef5b98a7e9df to your computer and use it in GitHub Desktop.
upstream rancher {
server rancher-server:8080;
}
server {
listen 80;
server_name rancher.synccloud.com;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
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";
# This allows the ability for the execute shell window to remain open for up to 15 minutes. Without this parameter, the default is 1 minute and will automatically close.
proxy_read_timeout 900s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment