File size: 546 Bytes
2d2110c
 
692114d
2d2110c
692114d
 
2d2110c
 
 
 
 
 
 
 
 
 
cf25e9f
2d2110c
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pydantic_settings import BaseSettings
from pathlib import Path
import os

ENV_FILE = os.getenv("ENV_FILE", ".env")
env_path = Path(__file__).resolve().parent.parent.parent / ENV_FILE

class Settings(BaseSettings):
    DATABASE_HOSTNAME: str
    DATABASE_PORT: str
    DATABASE_PASSWORD: str
    DATABASE_NAME: str
    DATABASE_USERNAME: str
    SECRET_KEY: str
    ALGORITHM: str
    ACCESS_TOKEN_EXPIRE_MINUTES: int
    GEMINI_API_KEY: str

    model_config = {"env_file": str(env_path), "env_file_encoding": "utf-8"}

settings = Settings()