-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.py
More file actions
29 lines (21 loc) · 819 Bytes
/
config.py
File metadata and controls
29 lines (21 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Settings for getting or creating S3 static website for both a stac-browser and for optional cloudfront origin.
Any environment variables starting with `VEDA_` will overwrite the values of variables in this file
"""
from typing import Optional
from pydantic import Field
from pydantic_settings import BaseSettings
class vedaS3WebsiteSettings(BaseSettings):
"""Application settings"""
stac_browser_bucket: Optional[str] = Field(
None,
description=(
"Optional existing bucket provisioned as public website"
"If not provided, a new bucket will be created and configured"
),
)
class Config:
"""model config"""
env_file = ".env"
env_prefix = "VEDA_"
extra = "ignore"
veda_s3_website_settings = vedaS3WebsiteSettings()