Configure Outbound Proxy for Bitbucket 5.5 as a Windows Service

Has anyone successfully configured an outbound proxy server for Bitbucket Server 5.5.0 on Windows while running as a service?

Previously it was possible to set the system properties via tomcat startup parameters. Now according to https://confluence.atlassian.com/bitbucketserverkb/how-to-configure-an-outbound-http-and-https-proxy-for-bitbucket-server-779171680.html, those options should be set via an environment variable: JVM_SUPPORT_RECOMMENDED_ARGS.

However when running Bitbucket Server as a service on Windows the atlbitbucket user is created by the installer/service setup and changing the password to a know value still does not allow the atlbitbucket user to log in. 

Does anyone know of a solution to properly set the outbound proxy?

1 answer

1 accepted

1 vote
Jeff Thomas Atlassian Team Oct 27, 2017

Hi Brent,

You shouldn't need to change the password to setup the configuration for an outgoing proxy. Instead, we'll make all of the changes in the service configuration for the JVM.

To modify the service, there should be a Start Menu shortcut for "Configure Bitbucket Server". Opening this will bring up the service configuration and you can move to the Java tab.

In the Java tab, there is a text box for Java Options. Add a new line for each of the outgoing proxy configuration parameters.

-Dhttp.proxyHost=proxy.example.org 
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=proxy.example.org
-Dhttps.proxyPort=8080
-Dhttp.nonProxyHosts=localhost

After hitting Apply and restarting the service, these parameters should take affect. 

Details on modifying the Windows service at available at How to update the JVM configuration for a Windows service.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

174 views 6 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you