Application Links failed

Meyer Flavio January 6, 2018
Dear Community

I've installed Jira, Confluence and Bitbucket on the same server in docker containers. All servers use HTTPS. Now i want to connect all together but i get an error. Can someone help me?
I've opened on Github an issue. In that issue you see all details with screenshots.

Link to issue: https://github.com/cptactionhank/docker-atlassian-jira/issues/57

Thanks for any replys.

Greetings Flavio

PS: I'm new with Atlassian products :)

2 answers

1 vote
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2018

Hello @Meyer Flavio,

Based on screenshots provided, you have a proxy set up (e.g. Apache, Nginx,...), along with that, you have mentioned they are running on the same server. With that said, it would have made your life easier if you:

 

It would have made your life easier if you had created a Network, e.g:

docker network create \
--driver bridge \
--subnet=10.10.0.0/16 \
dockerNetwork

Then, you could have created you Jira container, providing the --add-host entry to your proxy:

--hostname=jira
--network=dockerNetwork
--ip=10.10.0.5
--add-host confluence.flavio-meyer.ch:10.10.0.4
--add-host bitbucket.flavio-meyer.ch:10.10.0.4

Where confluence.flavio-meyer.ch and bitbucket.flavio-meyer.ch are the proxyName and 10.10.0.4 is the ip address to your proxy server, for instance.

Doing the same for Confluence:

--hostname=confluence
--network=dockerNetwork
--ip=10.10.0.6
--add-host jira.flavio-meyer.ch:10.10.0.4
--add-host bitbucket.flavio-meyer.ch:10.10.0.4

And Bitbucket server:

--hostname=bitbucket
--network=dockerNetwork
--ip=10.10.0.7
--add-host jira.flavio-meyer.ch:10.10.0.4
--add-host confluence.flavio-meyer.ch:10.10.0.4

And your proxy server (e.g Nginx) redirecting to each of application:

server {
#
# Jira
#

listen 443;
server_name jira.flavio-meyer.ch;

ssl on;
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/git.certificate.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://10.10.0.5:8080/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
}
}

server {
#
# Confluence
#

listen 443;
server_name confluence.flavio-meyer.ch;

ssl on;
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/git.certificate.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://10.10.0.6:8090/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
}
}
server {
#
# Bitbucket server
#

listen 443;
server_name bitbucket.flavio-meyer.ch;

ssl on;
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/git.certificate.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://10.10.0.7:7990/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
}
}

Add application entries to /etc/hosts

127.0.0.1  jira jira.flavio-meyer.ch
127.0.0.1  confluence confluence.flavio-meyer.ch
127.0.0.1  bitbucket bitbucket.flavio-meyer.ch

Once the configuration is in place, then, it is time to log in to each of the application and set up Application's Base URL to:

jira.flavio-meyer.ch
confluence.flavio-meyer.ch
bitbucket.flavio-meyer.ch

Visit the application on your web browser using the URL set up in Base URL and create the application link.

Kind regards,

Rafael

Meyer Flavio January 9, 2018

Hi Rafael

Thanks for helping and install guide. But how can i manage this configuration with traefik proxy? 

Kind regards,

Flavio

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.
January 6, 2018

Hi Flavio,

Add the proxyName, proxyPort and scheme=https to server.xml

<Connector port=<default>
    maxThreads=<default>
    minSpareThreads=<default>
    connectionTimeout=<default>
    enableLookups=<default>
    maxHttpHeaderSize=<default>
    protocol=<default>
    useBodyEncodingForURI=<default>
    redirectPort=<default>
    acceptCount=<default>
    disableUploadTimeout=<default>
    proxyName="<subdomain>.<domain>.com"
    proxyPort="443"
    scheme="https"/>

 For oauth, make sure the applications are using the same configurations. Either OAuth or OAuth (impersonation)

Screen Shot 2018-01-06 at 23.18.27.png

Meyer Flavio January 7, 2018

Hi Edwin,

Thanks for your reply. The settings (proxyName, proxyPort and scheme) where set on the server.xml file but i can't connect them together. 

 

Jira:

jira.PNG

Confluence:

confluence.PNG

BitBucket:

bitbucket.PNG

Are there any other solutions?

Greetings Flavio

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.
January 7, 2018

Check the application links and make sure they are both using the same OAuth type.

Depending on your version of Bitbucket, the server.xml configurations are now in bitbucket.properties.

Suggest an answer

Log in or Sign up to answer