Updated on 2024-04-02 GMT+08:00

Custom Source

In the self-hosted repo, you can add custom mirror sources to the Maven, npm, and PyPI virtual repositories. To configure a custom mirror source, perform the following procedure:

  1. Log in to the CodeArts homepage, click the username in the upper right corner of the page, and choose All Account Settings from the drop-down list.
  2. In the navigation pane on the left, choose Mirror > Mirror.
  3. Click the Custom Source tab and click Create Proxy at the upper right corner of the page.
  4. In the displayed dialog box, choose the package type, and enter the mirror repository name (required), proxy address (required), proxy username, and proxy password.

    1. The proxy address of the mirror repository must start with https:// or http://. Otherwise, an error message is displayed, indicating that the URL is invalid.
    2. If you do not set the proxy password, the password set last time is used by default.

  5. Click OK. The custom proxy source is added.
  6. You can perform the following operations on a custom proxy source that has been added.

    Operation

    Description

    Edit

    Click in the Operation column to change the mirror repository 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.