Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add a second connector for Jira

Sean Kim August 3, 2023

Hello,

I'm trying to add a second connector for Jira to have a dedicated port for API calls.

Looks like a user was able to achieve this here:

https://community.atlassian.com/t5/Jira-questions/Using-two-connectors-for-JIRA/qaq-p/738054

I followed the setup as described.

I've added a second connector in the server.xml. My Context path is blank.

<!-- main -->
<Connector acceptCount="100" bindOnInit="false" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8060" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" proxyName="myjira.local" proxyPort="443" scheme="https"/>

<!-- for API -->
<Connector acceptCount="100" bindOnInit="false" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8061" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" />

I restarted Jira and https://myjira.local still works but get a Connection refused error when attempting to send request to myjira.local:8061

Do I need to update additional settings?

1 answer

1 accepted

0 votes
Answer accepted
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2023 edited

Hi @Sean Kim

Is there a reason you do not specify the reverse proxy parameters in the 2nd connector? (proxyName, proxyPort, scheme)

If your API calls will go through the reverse proxy you should specify those too. But of course you'll need to confiugre the reverse proxy to use port 8061 and use another proxyName.

With the current setup you should be able to reach http://localhost:8061 from the machine Jira is running on. Note: this is without https.
Does that work?

Sean Kim August 4, 2023

Thanks @Charlie Misonne 

Setting up the reverse proxy worked. Cheers

Like Charlie Misonne likes this
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2023

glad I could help!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.3
TAGS
AUG Leaders

Atlassian Community Events