Skip to content

Instantly share code, notes, and snippets.

@qoomon
Last active January 6, 2016 16:29
Show Gist options
  • Save qoomon/2eab326893e46f72947c to your computer and use it in GitHub Desktop.
Save qoomon/2eab326893e46f72947c to your computer and use it in GitHub Desktop.
nginx subdomain to port config HTTP
# 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