Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

http://blog.servicerocket.com/adoption/blog/2014/07/3-steps-in-set-up-nginx-as-proxy-server-for-atlassian-jira

Jira HTTPS:

NginX Config :

##GLOBAL SSL
ssl_certificate /etc/ssl/certs/ssl-bundle.crt;
ssl_certificate_key /etc/ssl/private/server.key;

##Jira
server {
       listen         80;
       server_name    jira.freesoftwareservers.com;

       return         301 https://$server_name/;

}

server {
        listen 443 ssl;
        server_name jira.freesoftwareservers.com

location / {

        proxy_pass              http://192.168.1.255:8081/;

        include                 /etc/nginx/proxy.conf;
    }
}

/etc/nginx/proxy.conf

proxy_redirect          off;
proxy_set_header        Host            $host;
proxy_set_header        X-Real-IP       $remote_addr;
proxy_set_header        X-Forwarded-Server $host;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size    10m;
client_body_buffer_size 128k;
proxy_connect_timeout   90;
proxy_send_timeout      90;
proxy_read_timeout      90;
proxy_buffers           32 4k;

TomCat (Jira) Config:

nano /opt/atlassian/jira/conf/server.xml && service jira stop && service jira start

We will leave the default http://jira.example.com:8080 connection alone for troubleshooting/bypassing Reverse Proxy etc. We will make a new "connector"

        <Connector port="8080"

                   maxThreads="150"
                   minSpareThreads="25"
                   connectionTimeout="20000"

                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"/>

        <Connector port="8081"

		   proxyName="jira.freesoftwareservers.com"
		   proxyPort="443"
    	   	   scheme="https"
		   secure="true"

                   maxThreads="150"
                   minSpareThreads="25"
                   connectionTimeout="20000"

                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"/>

 

 

  • No labels