Closed pforprince closed 1 year ago
In docker based MinIO deployments, the host url should be DNS resolveable. So please check. It is mostly networking related issue. Not a MinIO SDK issue. Could you try with the IP ?.
mc admin trace <alias> -v
might help.
HI @prakashsvmx , sure but the url should work. Even after generating the url, I'm changing the host manually still its not working,
Also please check the parameters used in S3v4 calculation
Would it be possible for you to provide me a working example of such scenario? I'm on this for a week
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
CI=true MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password ./minio server /tmp/data --console-address ":9001"
Run this on your machine, generate a presigned url and try.
Here is an example built using SDK. (which also uses presingedUrl
for preview )
Please refer to this. So it is more to do with docker/setup/environment/network. (I am not an expert in this).
Also Have you set MINIO_SERVER_URL
env variable?
MINIO_ROOT_USER = minio
MINIO_ROOT_PASSWORD = miniosecret
MINIO_SERVER_URL = http://127.0.0.1
MINIO_BROWSER_REDIRECT_URL= http://127.0.0.1
Here's the env file
If I'm using MINIO_SERVER_URL = http://127.0.0.1 then I'm unable to log in in minio console
Hi there, I'm using Minio in project. Now, I want to keep the bucket private. I'm able to use the upload feature from my application but while getting preSignedUrl, I'm stuck. The URL it is returning it is not valid. Not showing the image as expected. But when I visit the console and share a file from there, it is working fine. Displaying the file as expected. I've provided both URLs in description.
Things to notice => Apart from host in both URLs, there are some things different. Security Token is missing from my own generated URLs Mine is using a different credentials value
Below are the code details.
Package.json
Docker compose -
Minio Client -
Function to get URL -
Minio console URL
Url that I'm getting