3 months 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)?
Pinned Solution
3 months 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
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?)
3 months 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-madehttps://railway.com/deploy/public-bucketsi hope this help u
3 months ago
This helps! Thank you.
Status changed to Solved brody • 3 months ago
