Configure custom domain to Tigris programmatically - Tigris
Configure custom domain to Tigris programmatically
Hi, I’m building a CMS and want to generate hundreds of buckets, assigning a custom subdomain to each. I tried setting up the public bucket with cache controls for each file and created the CNAME record in Cloudflare, but it didn’t work. I had to add the new subdomain manually via the Tigris console.
Another idea was to use the Fly CLI and assign a domain via the CLI, but that command only allows creating one bucket per app:
fly storage create --public
Error: A Tigris project named damp-tree-1234 already exist
So this isn’t a suitable solution.
Is there an API from Tigris to set this up programmatically, or perhaps via the S3 SDK?
Thanks.
Solution
Hi We have added custom domain management for buckets to the Partner Management API.
It doesn’t currently allow programmatically adding custom domains to buckets. But we can add that pretty quickly.
Partner Integration Program | Tigris Object Storage Documentation
Tigris is an object storage service that allows users to store and retrieve any.