Configure Outbound Proxy for Bitbucket 5.5 as a Windows Service

brentbrownfield October 26, 2017

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

2 votes
Answer accepted
Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 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
TAGS
AUG Leaders

Atlassian Community Events