Proxy Bitbucket Server with Go

JFrog Artifactory Documentation

JFrog Artifactory
Content Type
User Guide

Go Proxy Best Practice: Add Mirror Repository

We highly recommend that you create a remote repository pointing to the default go mirror ( and enter Artifactory as the Git provider. This way, Artifactory will be able to resolve cached public modules without querying the external registry, reducing the chance of rate limiting. For more information, see Set Up Go Proxy Mirror Repositories.

To create a remote repository that serves as a caching proxy for Bitbucket Server, follow these steps:

  1. Create a new remote repository and set Go as the Package Type.

  2. Set the Repository Key value, and enter your Bitbucket URL in the URL field: for example,

  3. In the Go Settings tab, set the Git Provider as Bitbucket Server.

  4. In the Advanced tab, enter the username Bitbucket account under Username, and your token under Password. To create a token:

    1. Go to your Bitbucket account, click your avatar in the top right corner, and select Manage account.

    2. Go to HTTP Access tokens, and click Create token.

    3. Give a label and select permissions for your password: select Read permission for Repositories, and if you need to, add other permissions according to your environment. When you are done, click Create.