If you are getting an invalid login for MinIO with self hosted, here’s the fix
The problem is UFW. On my server, I have UFW enabled. When I disabled it, everything worked as it should. I could log in to Minio using a secure connection. I figured maybe adding a rule to UFW that allows incoming traffic to port 9000 and 9001 would fix the problem since those are the ports Minio uses. But it didn’t work.
What worked was adding a rule to UFW that allows incoming traffic from the internal IP address of the docker container that runs Minio!
- First, you need to find the IP address of the docker container. You can do this by running the following command:
sudo docker network inspect <minio service uuid>. You can get the UUID from the URL in the Coolify dashboard when you’re on the Minio service page, for examplehttps://coolifydomain/project/<project-id>/production/service/<the-minio-id-we-want>. - Note the “IPv4Address” of the container in the output of the command above.
- Then run
sudo ufw allow from <the ipv4 address from the previous command>. For example,sudo ufw allow from 192.168.0.2/20. - Finally,
sudo ufw reload. - Note that if you pull the latest minio image and restart, the IP address will change. You’ll need to update the rule again.
You should be able to use Minio normally. That was a time-wasting experience, but I hope it helps someone else.