When configuring Artifactory to proxy a private registry, it is highly recommended to always create a proxy mirror directing to https://gocenter.io/ to resolve your public modules. This will reduce your unnecessary usage on your other remotes pointing to your private repositories hosted on other git providers and avoid potential rate-limiting issues.
To create a proxy mirror repository:
Create a new remote repository and set Go as its Package Type.
Set the Repository Key value, and enter
https://gocenter.io/
in the URL field as displayed below.In the Go Settings section, set the Git Provider as Artifactory.
In the Advanced tab, select the Priority Resolution checkbox.
Click Save & Finish.
Nest the repository you just created and your remote repository proxying a private registry under the same virtual repository. That way, whenever you resolve an artifact through the virtual repository, Artifactory will attempt to resolve your cached artifacts first and avoid requesting the external registry.