This topic describes how to configure a proxy within Alibaba Cloud DevOps Packages to facilitate access to other repositories.
Repository proxy settings
Packages serves as a proxy for accessing other repositories. When a package is not found in the repository, Packages automatically attempts to retrieve it from a predefined proxy repository. You can configure the proxy to access a public repository on Alibaba Cloud or a private repository.
Packages supports the use of multiple external repositories as proxies, but other Packages repositories are not allowed to be used as proxies.
When you configure a proxy for a private repository, ensure that your private repository is accessible from the internet.
Currently, a Node Package Manager (Npm) repository within Packages includes an automatic Npm mirror site proxy and provides configuration options for accessing other remote repositories.
Log on to Packages as a repository administrator. On the Repository page, click the repository that you want to configure. In the left-side navigation pane of the Artifacts page, click Settings. On the page that appears, click Proxy Settings. In the upper-right corner of the page, click Bind Proxy Repository. In the dialog box that appears, specify the parameters and click Bind to complete the configuration.
A poor network environment at the remote proxy repository may lead to slower download speeds for the private repository within Packages.