Custom domains
You can also use a custom domain with your bucket. To do this, the following requirements must be met first:
-
The custom domain name must be a valid domain or subdomain. For example,
images.example.com
,example.com
.UpdateStarting 7 April 2025, bucket names no longer need to match custom domain names.
-
The custom domain must have a CNAME record that points to the bucket URL. For example, if you own the domain
images.example.com
and bucketfoo-bucket
, the CNAME record forimages.example.com
should point tofoo-bucket.fly.storage.tigris.dev
.
Once these requirements are met, you can enable the custom domain as follows:
Set custom domain using the Tigris dashboard
- Navigate to the Tigris dashboard and select the bucket you want to set a custom domain for.
- Click on the Settings tab.
- Scroll down to the Custom Domain section.
- Enter the custom domain name in the Custom Domain field.
- Click on the Save button to save the changes.
Learn more about managing your bucket settings.
Set custom domain using the Fly CLI
- Open a terminal and run the following command to set the custom domain for
your bucket:
flyctl storage update foo-bucket --custom-domain images.example.com
- To remove the custom domain, run the following command:
Learn more about managing your bucket via fly cli.
flyctl storage update foo-bucket --clear-custom-domain
Security
When providing objects that render in a browser and have access to your domain's cookies, ensure that objects are sanitized to prevent XSS vulnerabilities.