Inquiry Regarding Public URL, File Access, and Custom Domain Setup for Object Storage
ritikraj0315
PROOP

3 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?

  1. 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.

  2. 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.

  3. Does Railway support configuring a custom domain for object storage?
    I would like to serve my files from:
    media.qloto.net

  4. If 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

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.


3 months ago

public urls dont exist the same way with r2, you have to generate a presigned url


Mb misread.
Only the S3 URL is given, sorry


ritikraj0315
PROOP

3 months ago

I guess presigned urls are temporary and expire after sometime, i need permanent URL


ritikraj0315
PROOP

3 months ago

Is there any solution available with the Railway S2 bucket?


3 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


3 months ago

https://railway.com/deploy/public-bucket-urls might also want to take a look at this, it says no egress incurred


ritikraj0315
PROOP

3 months ago

Are there any Railway employees available here, who can confirm this? About agress fess


Loading...