Created
October 9, 2016 20:20
-
-
Save Drethic/d809247993ff12d1d192097211aea9e8 to your computer and use it in GitHub Desktop.
Proxy file to allow Jira, Confluence, and Bitbucket to be run on the same server and all served on port 80
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
upstream jira { | |
server 127.0.0.1:8080; | |
} | |
upstream confluence { | |
server 127.0.0.1:8585; | |
} | |
upstream bitbucket { | |
server 127.0.0.1:9090; | |
} | |
# Jira | |
server { | |
server_name jira.thehorsemen.info; | |
listen 80; | |
access_log /var/log/nginx/jira.log combined; | |
location / { | |
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_pass http://127.0.0.1:8080; | |
proxy_set_header Authorization ""; | |
} | |
} | |
# Confluence | |
server { | |
server_name confluence.thehorsemen.info; | |
listen 80; | |
access_log /var/log/nginx/confluence.log combined; | |
location / { | |
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_pass http://127.0.0.1:8585; | |
proxy_set_header Authorization ""; | |
} | |
} | |
# bitbucket | |
server { | |
server_name bitbucket.thehoremen.info; | |
listen 80; | |
access_log /var/log/nginx/bitbucket.log combined; | |
location / { | |
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_pass http://127.0.0.1:9090; | |
proxy_set_header Authorization ""; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment