fix: use xml for minio cors config
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"AllowedOrigins": ["*"],
|
|
||||||
"AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
|
|
||||||
"AllowedHeaders": ["*"],
|
|
||||||
"ExposeHeaders": ["ETag"],
|
|
||||||
"MaxAgeSeconds": 3000
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<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
-2
@@ -56,7 +56,7 @@ services:
|
|||||||
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:
|
volumes:
|
||||||
- ./deployment/minio-cors.json:/etc/minio/cors.json:ro
|
- ./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
|
||||||
@@ -65,7 +65,7 @@ services:
|
|||||||
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.json
|
mc cors set local/$$S3_BUCKET /etc/minio/cors.xml
|
||||||
"
|
"
|
||||||
networks:
|
networks:
|
||||||
- wedding-private
|
- wedding-private
|
||||||
|
|||||||
Reference in New Issue
Block a user