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 votes
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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

673 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot