What's the right setup to use MinIO (S3 driver) disk? #55559
Unanswered
yeondevelope
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm having a lot of issues trying to configure a MinIO (S3) disk and I don't know if I'm making a wrong configuration. Let explain you all the configurations I've done so you can have a better understanding of what I mean:
Configurations I've tried
filesystems.php
setupAdditional info
bootstrap/app.php
with the$middleware->trustProxies(at: '*')
to avoid issues with reverse proxy's like cloudflared tunnel (Laravel's Documentation)Using the same
endpoint
as in my docker networkI follow the Laravel's Documentation for the
MINIO_S3_URL
.Issues with this setup:
/etc/hosts
with the server IP (192.168.1.1 minio
), because if not I get a console error ofERR_NAME_NOT_RESOLVED
.http://minio:9000
I get errors like:The page was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
This request has been blocked; the content must be served over HTTPS
Using HTTPs domain name
Because web browsers by using HTTPS requests (like with cloudflared tunnel reverse proxy) I've try to handle the MinIO (S3) traffic with a reverse proxy service as well. I forward the MinIO's port service (
9000
) to some domain likehttps://minio.my-domain.com
, so by that the.env
service looks like this:Issues with this setup:
GET
request generated points tohttps://minio.my-domain.com/<file-or-folder>
instead starting with my bucket name likehttps://minio.my-domain.com/my-bucket/<file-or-folder>
, so by I get retrieve errors like:Unable to check
Beta Was this translation helpful? Give feedback.
All reactions