diff --git a/src/app/config.py b/src/app/config.py index ecc0f6b5..fa923aa5 100644 --- a/src/app/config.py +++ b/src/app/config.py @@ -47,8 +47,9 @@ S3_SECRET_KEY: str = os.environ["S3_SECRET_KEY"] S3_REGION: str = os.environ["S3_REGION"] S3_ENDPOINT_URL: str = os.environ["S3_ENDPOINT_URL"] -S3_USE_PROXY: bool = os.environ.get("S3_USE_PROXY", "").lower() != "false" -S3_PROXY_URL: Union[str, None] = os.environ["S3_PROXY_URL"] if S3_USE_PROXY else None +S3_USE_PROXY: bool = os.environ.get("S3_USE_PROXY", "false").lower() != "false" +S3_PROXY_URL: Union[str, + None] = os.environ["S3_PROXY_URL"] if S3_USE_PROXY else None DUMMY_BUCKET_FILE = ( "https://ec.europa.eu/jrc/sites/jrcsh/files/styles/normal-responsive/" "public/growing-risk-future-wildfires_adobestock_199370851.jpeg"