Skip to content
Custom URL for bucket storage

a year ago

Hello!

I was wondering if the new buckets on railway support custom domains. Our URL for assets is currently https://[REDACTED].storage.railway.app/* and I was hoping to replace this with another URL. Is this possible (and does it cost extra)?

Solved$10 Bounty

Pinned Solution

domehane

a year ago

i think theres no direct custom domain support ; easiest workaround is to deploy a small service with your custom domain that just redirects to presigned urls from your bucket, that way you get zero egress costs since files come straight from the bucket. there's also a railway template called "public-buckets" that does exactly this if you want something ready-made

https://railway.com/deploy/public-buckets

i hope this help u

3 Replies

a year ago

Or if there isn't a direct feature that allows me to change the URL, is there a possible workaround (i.e., re-direct or proxy?)


domehane

a year ago

i think theres no direct custom domain support ; easiest workaround is to deploy a small service with your custom domain that just redirects to presigned urls from your bucket, that way you get zero egress costs since files come straight from the bucket. there's also a railway template called "public-buckets" that does exactly this if you want something ready-made

https://railway.com/deploy/public-buckets

i hope this help u


domehane

i think theres no direct custom domain support ; easiest workaround is to deploy a small service with your custom domain that just redirects to presigned urls from your bucket, that way you get zero egress costs since files come straight from the bucket. there's also a railway template called "public-buckets" that does exactly this if you want something ready-made <https://railway.com/deploy/public-buckets> i hope this help u

a year ago

This helps! Thank you.


Status changed to Solved brody • 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...