19 行
363 B
Python
19 行
363 B
Python
from __future__ import annotations
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URL: str
|
|
JWT_SECRET_KEY: str
|
|
JWT_ALGORITHM: str = "HS256"
|
|
JWT_EXPIRE_MINUTES: int = 480
|
|
NUXT_DATA_PATH: str
|
|
NUXT_PROJECT_PATH: str
|
|
UPLOAD_DIR: str
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|