2 months ago
Project id - 10fcd645-0115-46cb-8431-274edc39019d
Hi Railway Team,
I hope you are doing well.
I am currently using Railway's Object Storage service and I have a few questions regarding file access and public URLs:
Note - Previously I was using cloudflare R2, I decided to switch to Newly launched S3 bucket on Railway platform, cloudflare R2 has custom domain option, does railway?
How can I obtain a public URL for the files stored in my Object Storage bucket?
At the moment, I am only able to access files using the internal S3-compatible API, but direct public access results in AccessDenied.Is there a way to enable public file access for a specific bucket or folder?
For example, I want to make my uploaded media files publicly accessible via a URL.Does Railway support configuring a custom domain for object storage?
I would like to serve my files from:
media.qloto.netIf custom domains are supported, could you please guide me through the setup process?
I am specifically looking to understand:
Required DNS records
Any CNAME target or special endpoint
Whether SSL certificates are provided automatically
My goal is to allow users to access media files without needing signed URLs, using a clean and readable custom domain.
If possible, I would appreciate it if you could help me configure my storage to use:
https://media.qloto.net
Thank you for your assistance. Please let me know if you need any additional details from my side.
Best Regards,
Ritik Raj
rritik866@gmail.com
8 Replies
2 months ago
IIRC custom URLs aren't supported for buckets just yet.
The public URL can be found in bucket > credentials tab.
If you're not able to access it, I would make sure bucket name, access keys (ID & secret) and endpoint URL are copied correctly.
2 months ago
public urls dont exist the same way with r2, you have to generate a presigned url
2 months ago
Mb misread.
Only the S3 URL is given, sorry
I guess presigned urls are temporary and expire after sometime, i need permanent URL
2 months ago
https://railway.com/deploy/public-bucket-image-proxy this might work for you, but youll likely be incurring egress fees as its a proxy
2 months ago
https://railway.com/deploy/public-bucket-urls might also want to take a look at this, it says no egress incurred
Are there any Railway employees available here, who can confirm this? About agress fess