MinIO file sharing points to internal server when getting presigned URLs

I created the MinIO instance from the “Deploy to Render” button and the service was deployed. Using the URL provided by Render that by default points to the MinIO console rather than the API, I opened the console, created a bucket and uploaded an mp3 file. When I click share and get a link, the link points toward the internal server as can be seen in the link below.

Opening this link in the browser of course says the site can’t be reached, I need to get a link that I can publicly share.

What I’ve tried:
Changed the port of the render - provided URL to port 9000 to point at the MinIO API not GUI, redeployed the instance and used the URL in the place of
Doing this, a media player opened in the browser, but no content loaded.

I don’t have any experience with MinIO and any help will be appreciated.
BTW - doing this locally from a docker container works fine and the presigned URL opens the media in the browser, ready for download.

Hi @deonvisser,

Can you see if setting an environment variable on your service named MINIO_BROWSER_REDIRECT_URL with the value as the external hostname helps? This is in reference to the Things to consider section on the Minio readme. Let me know if this generates the URL correctly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.