I need help with MINIO Internal Environment Variables
quarkhadron
HOBBYOP

5 months ago

What I need

MINIO_ENDPOINT

MINIO_PORT

MINIO_USE_SSL

MINIO_ACCESS_KEY

MINIO_SECRET_KEY

MINIO_BUCKET

MINIO_PUBLIC_URL

What I'm struggling is MINIO_ENDPOINT, MINIO_PORT and MINIO_PUBLIC_URL

Using the public endpoint works fine but when I want to host it on railway, it can't seem to connect. Which environment variables I need for these 3?

Solved$10 Bounty

57 Replies

5 months ago

Hey, any reason on why you're using MinIO while Railway has buckets?


5 months ago


5 months ago

Also appears to be somewhat sunset:

1458203950640791563


quarkhadron
HOBBYOP

5 months ago

Mainly because of region, I'm serving asian people


5 months ago

Railway has support for Amsterdam

1458204136024707316


quarkhadron
HOBBYOP

5 months ago

That's still EU though


5 months ago

Oh yeah you're right sorry, forgot about the Singapore region.


5 months ago

there is a singapore region


quarkhadron
HOBBYOP

5 months ago

All good


5 months ago

what's your usecase for minio?


5 months ago

if its serving public files i would suggest using something else


5 months ago

if its serving private files i would also suggest using something else


quarkhadron
HOBBYOP

5 months ago

Can't find it though, I saw the same as @ThallesComH


quarkhadron
HOBBYOP

5 months ago

Storing audio and images that user uploads


5 months ago

We're talking about Railway buckets here


5 months ago

use real s3


5 months ago

Anyway, your vars should be:

MINIO_ENDPOINT=${{RAILWAY_PUBLIC_DOMAIN}}
MINIO_PORT= 
MINIO_PUBLIC_URL=https://${{RAILWAY_PUBLIC_DOMAIN}}/

5 months ago

aw rip


quarkhadron
HOBBYOP

5 months ago

Want to keep anything on Railway if possible


5 months ago

real s3 has a sg region


5 months ago

If it still does not work after that, ensure that MinIO is listening on 0.0.0.0 and not something like 127.0.0.1


5 months ago

  • more expensive,
  • less reliable
  • no sg region

5 months ago

you're writing s3-compatible code anyways


5 months ago

That's not recommended as it uses the public network and will occur bandwidth charges


quarkhadron
HOBBYOP

5 months ago

Yea looking for private


5 months ago

Oh right, sorry, I thought this was for public stuff.


5 months ago

are you doing file processing?


5 months ago

or just serving


5 months ago

You should use RAILWAY_PRIVATE_DOMAIN in that case


5 months ago

what a doozy


5 months ago


5 months ago

lmfao


5 months ago

you can't make this shit up


quarkhadron
HOBBYOP

5 months ago

Serving


5 months ago

<:vvv:254194425754812416>


5 months ago

this is crazy


5 months ago

😂


5 months ago

Let's keep this thread clean please 🙏


5 months ago

this is relevant?


5 months ago

Egress really isn't that expensive if you're putting a CDN in front.


5 months ago

Basically this


5 months ago

I don't remember the exact port though


quarkhadron
HOBBYOP

5 months ago

I tried doesn't seem to work


5 months ago

Would it not be whatever port the application is listening on?


5 months ago

Yeah


5 months ago

Buckets are back.

^In response to Alex's messages


5 months ago

Got it, that would be the port 9000


5 months ago

Buckets have no existence here <:Peepo_Cry:832227339161174027>


5 months ago

Pairing through threads saw a forwarded incident <:salute:1137099685417451530>


5 months ago

wait has sg never had buckets


5 months ago

i might be stupid


5 months ago

So,

MINIO_ENDPOINT=${{.RAILWAY_PRIVATE_DOMAIN}}
MINIO_PORT=${{.MINIO_PRIVATE_PORT}}
MINIO_PUBLIC_URL=${{.MINIO_PUBLIC_ENDPOINT}}

quarkhadron
HOBBYOP

5 months ago

Let me try that


5 months ago

thanks for clarifying thalles


quarkhadron
HOBBYOP

5 months ago

Wouldn't MINI_PUBLIC_URL still cost egress?


5 months ago

If you need to serve public files to your users (e.g., assets for a browser), then egress charges will be inevitable. If you only need to upload files to or download files from your service to MinIO, then a private network is the way to go.

In my previous application, I implemented both setups: one for uploading/downloading files internally and another to allow users to download files directly.



Status changed to Solved brody 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...