Integratin Atlassian JIRA with Nginx and SSL

This page describes how to integrate Nginx with JIRA, utilising Nginx as a reverse-proxy over HTTP.
Configurin Nginx:
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
    listen 80;
    server_name jira.itsol.biz;
    access_log off;
    return 301 https://$server_name$request_uri;
}
 
# /etc/nginx/conf.d/jira.conf
server {
    listen 443 default ssl;
 
    server_name jira.itsol.biz;
 
    access_log off;
    ssl on;
    ssl_certificate /etc/nginx/certs/itsol.biz.crt;
    ssl_certificate_key /etc/nginx/certs/itsol.biz.key;
 
    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:8080/;
    }
}
Configurin Jira – /opt/atlassian/jira/conf/server.xml
 <Connector 
    acceptCount="100" 
    connectionTimeout="20000" 
    disableUploadTimeout="true" 
    enableLookups="false" 
    maxHttpHeaderSize="8192" 
    maxThreads="150" 
    minSpareThreads="25"
    port="8080"
    protocol="HTTP/1.1"
    redirectPort="8443"
    useBodyEncodingForURI="true"
    scheme="https"
    proxyName="jira.itsol.biz"
    proxyPort="443"
/>
 That’s all!

Leave a Reply

Your email address will not be published.

*