pythongoogle-cloud-platformdnscustom-domain

Custom domain name to serve Python packages from Google Artifact Registry?


We're serving Python packages through Google's Artifact Registry. Actually the URL is the "default" one, so

https://[REGION].pkg.dev/[PROJECT_ID]/.....

but what if we wanted to use a custom domain name? For example we'd like to serve packages from a custom domain link like

https://[MY-CUSTOM-DOMAIN]/...

Is there an official way to do that? What are my options?


Solution

  • Posting my comment for visibility.

    Consider using the reverse proxy as described in the article:

    ...you can simply use your existing Google Container Registry or Artifact Registry to store your images, and build a "reverse proxy" on top of it to forward the incoming requests while still serving the traffic on the custom domain name you own.