24 lines
472 B
Python
24 lines
472 B
Python
# app/core/config.py
|
|
|
|
from pydantic_settings import BaseSettings
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
from pydantic import Field
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str
|
|
secret_key: str
|
|
algorithm: str
|
|
access_token_expire_minutes: int
|
|
|
|
admin_api_prefix: str = "/admin"
|
|
|
|
model_config = SettingsConfigDict(
|
|
env_file=".env",
|
|
env_ignore_case=True,
|
|
extra="ignore",
|
|
)
|
|
|
|
settings = Settings()
|
|
|
|
|