From 09d744763db408907b943ec5f7d31f49dcf71c42 Mon Sep 17 00:00:00 2001 From: oxalis-gps Date: Fri, 17 Feb 2017 04:35:20 +0900 Subject: [PATCH] Added Docker environment variable "S3PROXY_CORS_ALLOW_ALL" refs issues #142 refs Pull #144 The default value is false --- Dockerfile | 1 + src/main/resources/run-docker-container.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index cb02bb7..6d92bf4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ ENV \ S3PROXY_AUTHORIZATION="aws-v2" \ S3PROXY_IDENTITY="local-identity" \ S3PROXY_CREDENTIAL="local-credential" \ + S3PROXY_CORS_ALLOW_ALL="false" \ JCLOUDS_PROVIDER="filesystem" \ JCLOUDS_ENDPOINT="" \ JCLOUDS_IDENTITY="remote-identity" \ diff --git a/src/main/resources/run-docker-container.sh b/src/main/resources/run-docker-container.sh index 1a964cb..ae4e447 100755 --- a/src/main/resources/run-docker-container.sh +++ b/src/main/resources/run-docker-container.sh @@ -6,6 +6,7 @@ exec java \ -Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \ -Ds3proxy.identity=${S3PROXY_IDENTITY} \ -Ds3proxy.credential=${S3PROXY_CREDENTIAL} \ + -Ds3proxy.cors-allow-all=${S3PROXY_CORS_ALLOW_ALL} \ -Djclouds.provider=${JCLOUDS_PROVIDER} \ -Djclouds.identity=${JCLOUDS_IDENTITY} \ -Djclouds.credential=${JCLOUDS_CREDENTIAL} \