kopia lustrzana https://github.com/gaul/s3proxy
Allow Docker environment to ignore unknown headers
rodzic
233559bb2b
commit
39c289d649
|
@ -13,6 +13,7 @@ ENV \
|
|||
S3PROXY_IDENTITY="local-identity" \
|
||||
S3PROXY_CREDENTIAL="local-credential" \
|
||||
S3PROXY_CORS_ALLOW_ALL="false" \
|
||||
S3PROXY_IGNORE_UNKNOWN_HEADERS="false" \
|
||||
JCLOUDS_PROVIDER="filesystem" \
|
||||
JCLOUDS_ENDPOINT="" \
|
||||
JCLOUDS_REGION="" \
|
||||
|
|
|
@ -214,7 +214,7 @@ public final class Main {
|
|||
s3ProxyBuilder.v4MaxNonChunkedRequestSize(Long.parseLong(
|
||||
v4MaxNonChunkedRequestSize));
|
||||
}
|
||||
if (ignoreUnknownHeaders != null) {
|
||||
if (!Strings.isNullOrEmpty(ignoreUnknownHeaders)) {
|
||||
s3ProxyBuilder.ignoreUnknownHeaders(Boolean.parseBoolean(
|
||||
ignoreUnknownHeaders));
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ exec java \
|
|||
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
|
||||
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
|
||||
-Ds3proxy.cors-allow-all=${S3PROXY_CORS_ALLOW_ALL} \
|
||||
-Ds3proxy.ignore-unknown-headers=${S3PROXY_IGNORE_UNKNOWN_HEADERS} \
|
||||
-Djclouds.provider=${JCLOUDS_PROVIDER} \
|
||||
-Djclouds.identity=${JCLOUDS_IDENTITY} \
|
||||
-Djclouds.credential=${JCLOUDS_CREDENTIAL} \
|
||||
|
|
Ładowanie…
Reference in New Issue