close #4: [feat] add config

This commit is contained in:
Azamat 2026-04-02 12:20:16 +03:00
parent 7b3f82e805
commit 3448266c1d
4 changed files with 100 additions and 1 deletions

View file

@ -40,6 +40,19 @@ class OtelConfig:
metric_export_interval: int
@dataclass(frozen=True, slots=True)
class SandboxConfig:
image: str
ttl_seconds: int
cleanup_interval_seconds: int
chats_root: str
dependencies_host_path: str
lambda_tools_host_path: str
chat_mount_path: str
dependencies_mount_path: str
lambda_tools_mount_path: str
@dataclass(frozen=True, slots=True)
class SecurityConfig:
token_header: str
@ -55,4 +68,5 @@ class AppConfig:
metrics: MetricsConfig
tracing: TracingConfig
otel: OtelConfig
sandbox: SandboxConfig
security: SecurityConfig