From 6c203fc03218a8d29895147c55431f586dac47eb Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 11 Jul 2023 13:12:31 -0500 Subject: [PATCH] Add new config options to pict-rs.toml --- pict-rs.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pict-rs.toml b/pict-rs.toml index caf65b1..f47a156 100644 --- a/pict-rs.toml +++ b/pict-rs.toml @@ -334,6 +334,22 @@ secret_key = 'SECRET_KEY' # default: empty session_token = 'SESSION_TOKEN' +## Optional: set how long object storage signatures are valid for (in seconds) +# environment variable: PICTRS__STORE__SIGNATURE_EXPIRATION +# default: 15 +# +# This can be useful if your object storage might take a while to process requests. It should not be +# increased more than needed to prevent replay attacks. +signature_expiration = 15 + +## Optional: set how long pict-rs will wait (in seconds) for a response from object storage +# environment variable: PICTRS__STORE__CLIENT_TIMEOUT +# default: 30 +# +# This value is the total wait time, and not additional wait time on top of the +# signature_expiration. +client_timeout = 30 + ## Filesystem media storage example # ## Media storage configuration # [store]