Created
November 1, 2019 04:33
-
-
Save icarrr/6461dd167ee6d8a7bb41c624d15fa35d to your computer and use it in GitHub Desktop.
Bamboo nginx reverse proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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