Skip to content

Instantly share code, notes, and snippets.

@ghuntley
Created May 20, 2015 08:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ghuntley/1bf94ec4b8bafe1478b3 to your computer and use it in GitHub Desktop.
Save ghuntley/1bf94ec4b8bafe1478b3 to your computer and use it in GitHub Desktop.
youtrack nginx reverse proxy
server {
server_name [hostname];
listen 80;
location / {
proxy_pass http://localhost:[port];
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
#proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment