-
If the repository requires SSL authentication, import the SSL certificate and key to the {Project}. For more information, see {ContentManagementDocURL}Importing_Custom_SSL_Certificates_content-management[Importing Custom SSL Certificates] in {ContentManagementDocTitle}.
-
Note that the alternate content source paths consist of a base URL appended with the subpaths that you provide. For example, if your base URL is
https://{server-example-com}
and your subpaths arerhel7/
andrhel8/
, then bothhttps://{server-example-com}/rhel7/
andhttps://{server-example-com}/rhel8/
will be searched.
-
In the {ProjectWebUI}, navigate to Content > Alternate Content Sources.
-
Click Add Source and set the Source type as Custom.
-
Select the Content type.
-
In the Name field, enter a name for the alternate content source.
-
Optional: In the the Description field, provide a description for the ACS.
-
Select {SmartProxies} to which the alternate content source is to be synced.
-
Enter the Base URL of the alternate content source.
-
Enter a comma-separated list of Subpaths.
-
Provide the Manual Authentication or Content Authentication credentials, if these are needed.
-
If SSL verification is required, enable Verify SSL and select the SSL CA certificate.
-
Review details and click Add.
-
Navigate to Content > Alternate Content Sources > click the vertical ellipsis next to the newly created alternate content source > Select Refresh.
-
On {ProjectServer}, enter the following command:
# hammer alternate-content-source create \ --alternate-content-source-type custom \ --base-url "https://local-repo.example.com:port" \ --name "My_ACS_Name" \ --smart-proxy-ids My_{smart-proxy-context-titlecase}_ID
-
Check if the newly created alternate content source is listed:
# hammer alternate-content-source list
-
Refresh the alternate content source:
# hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID
-
Add the {SmartProxies} to which the alternate content source is to be synced:
# hammer alternate-content-source update \ --id My_Alternate_Content_Source_ID \ --smart-proxy-ids My_{smart-proxy-context-titlecase}_ID
-
Refresh the alternate content sources:
# hammer alternate-content-source refresh --id My_Alternate_Content_Source_ID