increase logging verbosity around s3 access errors
Docker server image / build-and-push (push) Successful in 3m14s
Docker server image / build-and-push (push) Successful in 3m14s
This commit is contained in:
@@ -14,6 +14,7 @@ class ServerConfig:
|
||||
s3_access_key: str
|
||||
s3_secret_key: str
|
||||
s3_secure: bool
|
||||
s3_region: str | None
|
||||
s3_public_endpoint: str
|
||||
s3_public_secure: bool
|
||||
s3_session_ttl_seconds: int
|
||||
@@ -35,11 +36,13 @@ def load_server_config() -> ServerConfig:
|
||||
if public_ssl_env is not None
|
||||
else s3_secure
|
||||
)
|
||||
region_env = os.getenv("S3_REGION", "").strip()
|
||||
return ServerConfig(
|
||||
s3_endpoint=os.getenv("S3_ENDPOINT", "localhost:8333"),
|
||||
s3_access_key=os.getenv("S3_ACCESS_KEY", "minioadmin"),
|
||||
s3_secret_key=os.getenv("S3_SECRET_KEY", "minioadmin"),
|
||||
s3_secure=s3_secure,
|
||||
s3_region=region_env or None,
|
||||
s3_public_endpoint=os.getenv("S3_PUBLIC_ENDPOINT", "localhost:8333"),
|
||||
s3_public_secure=s3_public_secure,
|
||||
s3_session_ttl_seconds=int(os.getenv("S3_SESSION_TTL_SECONDS", "3600")),
|
||||
|
||||
Reference in New Issue
Block a user