Skip to content

Commit

Permalink
configure maximum-timeskew with environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
timursaikaliev authored and gaul committed Jun 12, 2024
1 parent 4175022 commit a13b4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/gaul/s3proxy/S3Proxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static Builder fromProperties(Properties properties)

String maximumTimeSkew = properties.getProperty(
S3ProxyConstants.PROPERTY_MAXIMUM_TIME_SKEW);
if (maximumTimeSkew != null) {
if (maximumTimeSkew != null && !maximumTimeSkew.trim().isEmpty()) {
builder.maximumTimeSkew(Integer.parseInt(maximumTimeSkew));
}

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/run-docker-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ exec java \
-Ds3proxy.encrypted-blobstore-salt="${S3PROXY_ENCRYPTED_BLOBSTORE_SALT}" \
-Ds3proxy.v4-max-non-chunked-request-size="${S3PROXY_V4_MAX_NON_CHUNKED_REQ_SIZE:-33554432}" \
-Ds3proxy.read-only-blobstore="${S3PROXY_READ_ONLY_BLOBSTORE:-false}" \
-Ds3proxy.maximum-timeskew="${S3PROXY_MAXIMUM_TIMESKEW}" \
-Djclouds.provider="${JCLOUDS_PROVIDER}" \
-Djclouds.identity="${JCLOUDS_IDENTITY}" \
-Djclouds.credential="${JCLOUDS_CREDENTIAL}" \
Expand Down

0 comments on commit a13b4cf

Please sign in to comment.