File size: 538 Bytes
571122c
 
 
 
f1fbb28
571122c
e1c6d87
571122c
 
f1fbb28
1469fc1
571122c
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from pathlib import Path
from dotenv import load_dotenv
from urllib.parse import quote_plus
from pydantic_settings import BaseSettings

load_dotenv()


class Settings(BaseSettings):
    DATABASE_URL = "postgresql://snapfeast_db_owner:[email protected]/snapdb?sslmode=require"
    JWT_SECRET_KEY: str = os.getenv("JWT_SECRET")
    JWT_ALGORITHM: str = os.getenv("JWT_ALGORITHM")
    ACCESS_TOKEN_EXPIRE_MINUTES: int = os.getenv("ACCESS_TOKEN")

def get_settings():
    return Settings()