Skip to content

Instantly share code, notes, and snippets.

@icarrr
Created November 1, 2019 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icarrr/6461dd167ee6d8a7bb41c624d15fa35d to your computer and use it in GitHub Desktop.
Save icarrr/6461dd167ee6d8a7bb41c624d15fa35d to your computer and use it in GitHub Desktop.
Bamboo nginx reverse proxy
server {
server_name domain.id;
# NGINX usually only allows 1M per request. Increase this to JIRA's maximum attachment size (10M by default)
client_max_body_size 10M;
access_log /var/log/nginx/bamboo_access.log;
error_log /var/log/nginx/bamboo_error.log warn;
location / {
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires off;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://urlServerBamboo:8085;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment