21 lines
608 B
Python
21 lines
608 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
jwt_secret: str
|
|
git_host: str
|
|
jwt_algorithm: str = "HS256"
|
|
work_dir: str = "/tmp/builds"
|
|
buildkit_host: str = "unix:///run/buildkit/buildkitd.sock"
|
|
git_clone_timeout_seconds: int = 300
|
|
build_timeout_seconds: int = 1800
|
|
host: str = "0.0.0.0"
|
|
port: int = 8080
|
|
max_upload_bytes: int = 200 * 1024 * 1024
|
|
max_file_bytes: int = 50 * 1024 * 1024
|
|
max_manifest_files: int = 512
|
|
|
|
|
|
settings = Settings()
|