Forums

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

bitbucket reverse proxy setup for SSL

Richard
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2019

I was able to set up JIRA behind a Apache reverse proxy using SSL.  Unfortunately, after reading the bitbucket documentation, it does not use the same server.xml config file.  I read the documentation about using bitbucket.properties file, but there was no such file on my ubuntu server after installing.  The documentation is not very specific when it refers to <Bitbucket home directory> /shared.  Is this the installation files home, or the data files home?  These two are in different folders on my system.  To test, I created a shared directory in both of the bitbucket directories and created a bitbucket.properties file.  My file has these properties specified:

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

I am using a VirtualHost file to redirect traffic sent to my apache server with subdomain bitbucket.example.com to port 7990 on the local host, where bitbucket is listening.  I was able to do this for JIRA, but it's not working for my bitbucket server.  What am I missing?

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 21, 2019

Hi! 

 

I believe your file should be like 

server.port=7990
server.proxy-name=bitbucket.example.com
server.proxy-port=443

reference:

https://confluence.atlassian.com/bitbucketserver/bitbucket-server-config-properties-776640155.html

 

 

Cheers,

Gonchik Tsymzhitov

Richard
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2019

Thank you for the reference - I will make these changes and see what happens.  Do you know if the properties file should be in the application data directory, or the install directory?  E.g. for me on ubuntu the application data is in /var/atlassian and the application was installed at /opt/atlassian

Gonchik Tsymzhitov
Community Champion
January 21, 2019

Create the bitbucket.properties file, in the shared folder of your home directory, and add the system properties you need, use the standard format for Java properties files.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events