Last active
January 6, 2016 16:29
-
-
Save qoomon/2eab326893e46f72947c to your computer and use it in GitHub Desktop.
nginx subdomain to port config HTTP
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
# replace <ServiceSubDomain> | |
# replace <LocalPort> | |
server { | |
listen 80; | |
server_name <ServiceSubDomain>.*; | |
access_log off; | |
# Increase this to JIRA's maximum attachment size (10M by default) | |
client_max_body_size 10M; | |
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://localhost:<LocalPort>; | |
proxy_buffering off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment