ARTIFACTORY: Why Cargo Registry requires Custom Base URL?
The URLs generated in the JFrog Platform Deployment (JPD) use the context URL returned by your servlet container as a base by default. A custom URL base is useful when the system is running behind a proxy. In this case, the base for URLs generated in the JPD for links and redirect responses must be specified manually. Another reason to change the base URL would be to have non-request-based operations use the correct address, for example in generated emails.
To further understand the Custom Base URL for Cargo:
The Cargo registry is a package manager for Rust. When using Artifactory as a registry for Cargo, it is necessary to configure a custom base URL.
The reason for this is that Cargo expects the registry to have a specific URL structure for requests and Artifactory's default registry URL structure is different from that expected by Cargo. When Artifactory receives a request from Cargo that does not match its default URL structure, it returns an error.
By configuring a custom base URL, you can ensure that Artifactory and Cargo can communicate effectively and avoid any issues with request processing or response errors.