Application link Jira to BitBucket Server via nginx https all in docker

frantzcy April 30, 2017

Hi,

  I am trying to do the link between Jira and Bitbucket Server, but no luck.

From BitBucket Server to Jira the temporary link seems to go though. But when it tries to create the link back the bitbucket server is not responding.

If I try to continue, I am asked to enter the information manually. That Is where I have no idea what to put.


You are creating a link from:

Application URL: https://jira.me
Name: MySuperEmpire JIRA
Application: JIRA

To this application:
Application URL: https://git.me
Application Name: MySuperEmpire GIT
Application Type: Bitbucket Server
Service Provider Name: ???
Consumer key: ???
Shared secret: ???
Request Token URL: ???
Access token URL: ???
Authorize URL: ???
Create incoming link: ??? y/n?

 

Both Jira and BitBucket server are running in docker.

They are only accessible through HTTPS through another container running nginx.

both https://jira.me and https://git.me work great by themselves.

 

For some reason, git can see jira, but not the other way around.

The jira container can see https://git.me properly.

Do I have another port to configure on nginx ? Host entries? A server.xml setting?  Anything?

 

Any idea would be greatly appreciated.

 

 

1 answer

0 votes
edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2017

You'll have to download and import the ssl cert and import them into the JVM that is running the applications.

https://confluence.atlassian.com/kb/how-to-import-a-public-ssl-certificate-into-a-jvm-867025849.html

Add these lines to server.xml

proxyName="jira.me"
scheme="https"
proxyPort="443"

and do the same for bitbucket

proxyName="bitbucket.me"
secure="true"
scheme="https"
proxyPort="443"

Restart both applications after importing and adding the changes.

frantzcy May 16, 2017

Thank you for the answer,

I was apparently running a  'not so latest version'Adding the lines 

upgrading, along with adding the server.xml lines got me going.

 

 

edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2017

No problem.

Suggest an answer

Log in or Sign up to answer