- AI chat interface with file uploads - Admin panel for managing OpenAI/Ollama endpoints - User authentication with JWT - SQLite database backend - SvelteKit frontend with dark theme
20 lines
535 B
Python
20 lines
535 B
Python
from pydantic_settings import BaseSettings
|
|
from typing import Optional
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
SECRET_KEY: str = "your-secret-key-change-in-production"
|
|
DATABASE_URL: str = "sqlite:///./moxiegen.db"
|
|
UPLOAD_DIR: str = "./uploads"
|
|
MAX_FILE_SIZE: int = 10 * 1024 * 1024 # 10MB
|
|
DEFAULT_ADMIN_EMAIL: str = "admin@moxiegen.com"
|
|
DEFAULT_ADMIN_PASSWORD: str = "admin123"
|
|
ALGORITHM: str = "HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|