Last active
December 23, 2015 06:19
-
-
Save tkhn/6592786 to your computer and use it in GitHub Desktop.
nginx proxy for JIRA
This file contains hidden or 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
| # 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