This guide is intended for customers running an on-premise JIRA server that is not reachable over the public Internet. It describes one approach to securely expose JIRA to the Unito service by leveraging the ngrok secure tunnel. There are also other options described this article.
1) Download and run the ngrok client
Download the ngrok client for your platform, and copy it to the server running your JIRA application.
Find out which port your JIRA is listening to. By default this is port 8080, and you can test it by opening http://localhost:8080 in a browser or using curl on the command line, both directly from the JIRA server.
Start the ngrok client on that port:
$ ngrok http 8080
2) Test the tunnel
ngrok will show you a Tunnel Status and indicate an HTTPS URL.
Paste that URL in a browser. Make sure you use the HTTPS URL, not the unsecure HTTP one. You should see JIRA load up.
Scroll to the bottom, you will likely see this warning from JIRA. If you don't get any warning, you can skip to the last step below.
3) Add a connector to JIRA's server.xml
Open the server.xml configuration file for your JIRA application. By default, you'll find it under the conf/ folder of your JIRA installation.
Find the element under the <Service> section. You'll want to add a new element as such:
<Connector port="8081" scheme="https" maxThreads="150" minSpareThreads="25"
connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192"
protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
The important part here is scheme="https", which tells JIRA you're going through a service (ngrok) that invisibly adds HTTPS over JIRA's connection.
Note, we used port="8081", but you can choose any other port. Just remember to use that port when you next run ngrok.
4) Restart JIRA and ngrok
Restart your JIRA server and the ngrok client, this time with the new port number:
$ ngrok http 8081
Now, if you access the new ngrok HTTPS URL in your browser, you should no longer see the warning.
5) Connect your JIRA server to Unito
In the Unito app, add a new JIRA connector. When prompted, paste the ngrok forwarding URL. You should then be prompted to login/authorize by your JIRA server. You can now create new syncs with your JIRA server!
If you're still having trouble or would like a more advanced network configuration, please reach out to us and we'll figure out the right setup with you.
Note: don't forget to create your JIRA application link.
Warning: every time you run ngrok, you will get a new forwarding URL, which will cut off Unito's access to your JIRA server. We recommend you use an ngrok custom subdomain.