fix: minio cors allow all temp config
Deploy On Server / Prepare Repository Remotely (push) Successful in 7s
Deploy On Server / Docker Compose Up (push) Successful in 19s
Deploy On Server / Prune Images (push) Successful in 4s
Deploy On Server / Remove .env File (push) Successful in 3s

This commit is contained in:
Raul Lugo
2026-08-10 18:36:03 +02:00
parent f66c3fd40f
commit d4c542b93b
2 changed files with 2 additions and 17 deletions
-13
View File
@@ -1,13 +0,0 @@
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<ExposeHeader>ETag</ExposeHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration>
+2 -4
View File
@@ -25,6 +25,7 @@ services:
environment: environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin} MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin} MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
MINIO_API_CORS_ALLOW_ORIGIN: ${MINIO_API_CORS_ALLOW_ORIGIN:-*}
volumes: volumes:
- ./wedding-minio-data:/data - ./wedding-minio-data:/data
labels: labels:
@@ -55,8 +56,6 @@ services:
S3_BUCKET: ${S3_BUCKET:-wedding-uploads} S3_BUCKET: ${S3_BUCKET:-wedding-uploads}
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin} MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin} MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
volumes:
- ./deployment/minio-cors.xml:/etc/minio/cors.xml:ro
entrypoint: > entrypoint: >
/bin/sh -c " /bin/sh -c "
until mc alias set local http://wedding-minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD; do until mc alias set local http://wedding-minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD; do
@@ -64,8 +63,7 @@ services:
sleep 2; sleep 2;
done; done;
mc mb --ignore-existing local/$$S3_BUCKET && mc mb --ignore-existing local/$$S3_BUCKET &&
mc anonymous set none local/$$S3_BUCKET && mc anonymous set none local/$$S3_BUCKET
mc cors set local/$$S3_BUCKET /etc/minio/cors.xml
" "
networks: networks:
- wedding-private - wedding-private