Allow Docker environment to ignore unknown headers

pull/218/head
Andrew Gaul 2017-08-16 17:47:24 -07:00
rodzic 233559bb2b
commit 39c289d649
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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="" \

Wyświetl plik

@ -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));
}

Wyświetl plik

@ -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} \