Skip to content

Instantly share code, notes, and snippets.

@jaredstehler
Created March 3, 2015 19:57
Show Gist options
  • Save jaredstehler/20b2e0c74e49d76de118 to your computer and use it in GitHub Desktop.
Save jaredstehler/20b2e0c74e49d76de118 to your computer and use it in GitHub Desktop.
nginx load balancer internal proxy definition
location ^~ /hs_existing_service_proxy {
internal;
resolver 8.8.8.8;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_buffering off;
proxy_max_temp_file_size 0;
set $download_url $upstream_http_x_downstream_url;
proxy_pass $download_url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment