Skip to content

Instantly share code, notes, and snippets.

@tkhn
Last active December 23, 2015 06:19
Show Gist options
  • Select an option

  • Save tkhn/6592786 to your computer and use it in GitHub Desktop.

Select an option

Save tkhn/6592786 to your computer and use it in GitHub Desktop.
nginx proxy for JIRA
# nginx
server {
listen 80;
listen 443;
ssl_certificate /etc/pki/tls/certs/example.crt;
ssl_certificate_key /etc/pki/tls/private/example.key;
server_name jira.example.com;
location / {
proxy_pass http://localhost:8088;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
#port_in_redirect off;
proxy_redirect http://localhost:8080/jira /;
proxy_connect_timeout 300;
}
}
# /opt/atlassian/jira/conf/server.xml part
<Connector port="8088"#
maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
enableLookups="false"
maxHttpHeaderSize="8192"
protocol="HTTP/1.1"
useBodyEncodingForURI="true"
redirectPort="8443"
acceptCount="100"
disableUploadTimeout="true"
scheme="https"
proxyName="jira.example.com"
proxyPort="443"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment