Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created April 11, 2019 23:51
Show Gist options
  • Select an option

  • Save 100daysofdevops/492709783455c5a34f86f2f8852e8216 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/492709783455c5a34f86f2f8852e8216 to your computer and use it in GitHub Desktop.
proxy_redirect default;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_max_temp_file_size 0;
#this is the maximum upload size
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffering off;
proxy_request_buffering off; # Required for HTTP CLI commands in Jenkins > 2.54
proxy_set_header Connection ""; # Clear for keepalive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment