Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Parse GS_EXPIRATION, making GS_QUERYSTRING_AUTH work (#7483)
Nicolas Staldere767b353b163
diff --git a/saleor/settings.py b/saleor/settings.pyindex fbceb7a170..7c4a488e66 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -429,7 +429,7 @@ GS_AUTO_CREATE_BUCKET = get_bool_from_env("GS_AUTO_CREATE_BUCKET", False)GS_QUERYSTRING_AUTH = get_bool_from_env("GS_QUERYSTRING_AUTH", False)GS_DEFAULT_ACL = os.environ.get("GS_DEFAULT_ACL", None)GS_MEDIA_CUSTOM_ENDPOINT = os.environ.get("GS_MEDIA_CUSTOM_ENDPOINT", None)-GS_EXPIRATION = os.environ.get("GS_EXPIRATION", None)+GS_EXPIRATION = timedelta(seconds=parse(os.environ.get("GS_EXPIRATION", "1 day")))GS_FILE_OVERWRITE = get_bool_from_env("GS_FILE_OVERWRITE", True)# If GOOGLE_APPLICATION_CREDENTIALS is set there is no need to load OAuth token