I need help with MINIO Internal Environment Variables
quarkhadron
HOBBYOP

a month ago

What I need

MINIOENDPOINT MINIOPORT
MINIOUSESSL
MINIOACCESSKEY
MINIOSECRETKEY
MINIOBUCKET MINIOPUBLIC_URL

What I'm struggling is MINIOENDPOINT, MINIOPORT and MINIOPUBLICURL

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

passos
MODERATOR

a month ago

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


passos
MODERATOR

a month ago


Also appears to be somewhat sunset:

1458203950640791600


quarkhadron
HOBBYOP

a month ago

Mainly because of region, I'm serving asian people


passos
MODERATOR

a month ago

Railway has support for Amsterdam

1458204136024707300


quarkhadron
HOBBYOP

a month ago

That's still EU though


passos
MODERATOR

a month ago

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


alexng353
PRO

a month ago

there is a singapore region


quarkhadron
HOBBYOP

a month ago

All good


alexng353
PRO

a month ago

what's your usecase for minio?


alexng353
PRO

a month ago

if its serving public files i would suggest using something else


alexng353
PRO

a month ago

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


quarkhadron
HOBBYOP

a month ago

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


quarkhadron
HOBBYOP

a month ago

Storing audio and images that user uploads


passos
MODERATOR

a month ago

We're talking about Railway buckets here


alexng353
PRO

a month ago

use real s3


Anyway, your vars should be:

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

alexng353
PRO

a month ago

aw rip


quarkhadron
HOBBYOP

a month ago

Want to keep anything on Railway if possible


alexng353
PRO

a month ago

real s3 has a sg region


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


alexng353
PRO

a month ago

  • more expensive,

  • less reliable

  • no sg region


alexng353
PRO

a month ago

you're writing s3-compatible code anyways


passos
MODERATOR

a month ago

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


quarkhadron
HOBBYOP

a month ago

Yea looking for private


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


alexng353
PRO

a month ago

are you doing file processing?


alexng353
PRO

a month ago

or just serving


You should use RAILWAY_PRIVATE_DOMAIN in that case


alexng353
PRO

a month ago

what a doozy


alexng353
PRO

a month ago


alexng353
PRO

a month ago

lmfao


alexng353
PRO

a month ago

you can't make this shit up


quarkhadron
HOBBYOP

a month ago

Serving


<:vvv:254194425754812416>


alexng353
PRO

a month ago

this is crazy


alexng353
PRO

a month ago

😂


passos
MODERATOR

a month ago

Let's keep this thread clean please 🙏


alexng353
PRO

a month ago

this is relevant?


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


passos
MODERATOR

a month ago

Basically this


passos
MODERATOR

a month ago

I don't remember the exact port though


quarkhadron
HOBBYOP

a month ago

I tried doesn't seem to work


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


passos
MODERATOR

a month ago

Yeah


noahd
EMPLOYEE

a month ago

Buckets are back.
^In response to Alex's messages


passos
MODERATOR

a month ago

Got it, that would be the port 9000


Buckets have no existence here <:Peepo_Cry:832227339161174027>


noahd
EMPLOYEE

a month ago

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


alexng353
PRO

a month ago

wait has sg never had buckets


alexng353
PRO

a month ago

i might be stupid


passos
MODERATOR

a month ago

So,

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

quarkhadron
HOBBYOP

a month ago

Let me try that


alexng353
PRO

a month ago

thanks for clarifying thalles


quarkhadron
HOBBYOP

a month ago

Wouldn't MINIPUBLICURL still cost egress?


passos
MODERATOR

a month 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 about 1 month ago


Loading...