-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (33 loc) · 1.35 KB
/
config.py
File metadata and controls
47 lines (33 loc) · 1.35 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import socket
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
model_config = {"env_prefix": "RK_"}
database_url: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/agent"
jwt_secret: str = "change-me-in-production"
jwt_algorithm: str = "HS256"
jwt_expire_minutes: int = 60 * 24
encryption_key: str = "change-me-in-production"
cors_origins: list[str] = [
"http://localhost:3000",
"http://localhost:3001",
"http://localhost:3002",
"http://localhost:5173",
]
debug: bool = False
session_ttl_minutes: int = 30
redis_url: str = ""
instance_id: str = socket.gethostname()
minimum_sdk_version: str = "1.0.0"
supported_sdk_major_versions: list[int] = [1]
chat_capability_secret: str | None = None
chat_capability_ttl_seconds: int = 300
sdk_client_token_secret: str | None = None
sdk_client_token_ttl_seconds: int = 900
sdk_client_token_rate_limit_per_minute: int = 60
knowledge_bases_base_url: str = "http://kb-service:8100"
knowledge_bases_audience: str = "kb-service"
knowledge_bases_signing_key: str = "change-me-kb-service-signing-key"
knowledge_bases_jwt_algorithm: str = "HS256"
knowledge_bases_timeout_seconds: float = 20.0
knowledge_bases_connect_timeout_seconds: float = 5.0
settings = Settings()