The procedure for creating a Smart Remote repository for NuGet involves additional configuration, as described below.
To create a NuGet Smart Remote repository:
On the first Artifactory instance (
JFROG_INSTANCE_1), do the following:In the Administration module, go to Repositories > Create a Repository > Remote.
Choose NuGet as the package type.
In the Basic tab, enter the URL of the desired remote NuGet registry (default: https://www.nuget.org).
Enter additional basic and advanced settings as required, and then click Create Remote Repository.
You now have a remote repository that points to the remote NuGet registry.
On the second Artifactory instance, create a Smart Remote repository that points to the remote repository on the first Artifactory instance. The URL will look like this:
https://<JFROG_INSTANCE_1>/artifactory/api/nuget/<JFROG_INSTANCE_1_REMOTE_REPO>Enter your username and password for
JFROG_INSTANCE_1. Alternatively, enter a valid access token issued byJFROG_INSTANCE_1.In the Basic tab of the second Artifactory instance, configure the following settings:
Parameter
Value
NuGet Download Context Path
Download
NuGet Feed Context Path
Leave blank
NuGet v3 Feed URL
https://<JFROG_INSTANCE_1>/artifactory/api/nuget/v3/<JFROG_INSTANCE_1_REMOTE_REPO>/See the note below.
Important
The Feed URL is used to download the index.json/feed.json file, which serves as the service index for NuGet packages. Make sure to point this Feed URL to your Smart Remote repository (
JFROG_INSTANCE_1) so that it serves as your service index and feed. Without this, the Smart Remote repository will try to go directly to nuget.org for feed resolution, which will preventJFROG_INSTANCE_1from caching artifacts correctly and may be blocked by network restrictions.Click the Test button to verify the connection to
JFROG_INSTANCE_1.To configure your NuGet client with the newly created Smart Remote repository, see Connect Your NuGet Client to Artifactory.