21 lines
563 B
Python
21 lines
563 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
pocketbase_url: str = "http://127.0.0.1:8090"
|
|
pocketbase_admin_email: str = "admin@nomadflow.io"
|
|
pocketbase_admin_password: str = "admin123456"
|
|
api_host: str = "0.0.0.0"
|
|
api_port: int = 8000
|
|
cors_origins: str = "http://localhost:3000,http://127.0.0.1:3000"
|
|
|
|
@property
|
|
def cors_origin_list(self) -> list[str]:
|
|
return [o.strip() for o in self.cors_origins.split(",") if o.strip()]
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|