Create Hex Remote Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

This topic describes how to create a Hex remote repository in Artifactory to resolve, cache, and manage external Hex packages. It provides instructions to create a remote repository that proxies remote sources, ensuring efficient access to and caching of both public and private Hex packages.

Prerequisites

The Mix client requires that you host your Hex repository RSA public key in your project folder to verify the index signature. For more information, see Generate and Upload RSA Key Pair.

To create a remote repository to proxy a remote hex registry, follow these steps:

  1. Click Administration tab, and then click Repositories.

  2. Click Remote from Create a Repository drop-down list.

    HexRemote1.png
  3. Click Hex in the Select Package Type dialog.

    HexRemote2.png
  4. Set Repository Key in the New Local Repository window.

  5. Under RSA Key Pair, select the RSA key you would like to use from the drop-down menu.

    This key is used for the protobuf encoding to communicate with your mix client.

  6. (Optional)  By default, Hex remote repositories are configured to point to the public Hex registry, and we automatically populate the upstream public key to decrypt Protobuf responses. If you wish to direct this remote repository to a self-hosted instance or a private Hex registry, update the URL and ensure you enter the corresponding public key of the registry’s URL.

  7. (Optional) For other Basic settings, refer to the Basic Settings for Remote Repositories.

  8. (Optional) For Advanced settings, refer to the Advanced Settings for Remote Repositories.

  9. Click Create Remote Repository.

  10. (Optional) If you are using a private Hex.pm registry, add your secret for your organization in the Password/ Access Token field.

    HexRemote3.png