Configuring and Adding a Proxy in a Virtual Repository
You can configure proxy sources in the virtual repository to connect with local third-party repositories. A virtual repository also offers local repository functions and provides a single entry to make setup easier.
Configuring a Proxy in a Virtual Repository
Custom proxy repositories allow you to add proxies for open-source and third-party dependency repositories. After files are downloaded from proxy repositories, they can be cached to CodeArts Artifact, speeding up the third-party dependency download speed to that of the local repository.
The proxy settings are available for Maven, npm, Docker, and PyPI in repositories.
In the self-hosted repo, you can add custom mirror sources to the Maven, npm, Docker, and PyPI virtual repositories. To configure a custom mirror source, perform the following procedure:
- Log in to the CodeArts homepage, click the username in the upper right corner of the page, and choose from the drop-down list.
- In the navigation pane, choose Mirror > Mirror.
- Click the Custom tab and click Create Proxy at the upper right corner of the page.
- In the displayed dialog box, choose the package type, and enter the proxy name (required), proxy repository address (required), PyPI index proxy address (required only if the package type is PyPI), proxy username, and proxy password.
- The proxy repository address must start with https:// or http://. Otherwise, an error message is displayed, indicating that the URL is invalid.
- If you do not set the proxy password, the password set last time is used by default.
- Click OK. The custom proxy source is added.
- Perform the following operations on a custom proxy source.
Operation
Description
Edit
Click
in the Operation column to change the proxy name, proxy username, and proxy password.
Delete
Click
in the Operation column to delete the custom proxy source.
If the custom proxy source to be deleted has been associated with a self-hosted repo, remove the proxy source on the Proxy Settings page of the corresponding repository and return to this page to delete the proxy source.
Adding a Proxy in a Virtual Repository
- Create a virtual repository by referring to 1.
- Access the self-hosted repo homepage. In the left pane, select the target virtual repository.
- Click Proxy Settings in the upper right corner of the page.
- Click Add Proxy and select Open Source or Custom.
You can select Third-party Repository or Huawei Local Repository from Custom.
- Third-party repository: Set a third-party repository or a repository created by a user as the proxy source.
After selecting a third-party repository, click the Proxy Name drop-down list box and select a custom proxy source. For details about how to add a custom proxy source, see Custom Source.
- Huawei local repository: Set Huawei local repository as the proxy source. Users can only select the local repository of which they are the repository administrator.
You can select a local repository from the Proxy Name drop-down list box.
- Third-party repository: Set a third-party repository or a repository created by a user as the proxy source.
- Click OK. The proxy is added.
- Click
in the Operation column to change the proxy name, proxy username, and proxy password. You cannot edit the proxy source of the Huawei local repository.
- Click
in the Operation column to delete the proxy.
- Click
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot