File size: 1,040 Bytes
34e27fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2c0914c
34e27fb
 
02c5845
34e27fb
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from pydantic_settings import BaseSettings
from typing import Optional


class Settings(BaseSettings):
    # Database
    DATABASE_URL: str = "postgresql://neondb_owner:npg_LsojKQF8bGn2@ep-mute-pine-a4g0wfsu-pooler.us-east-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require"
    # Auth
    BETTER_AUTH_SECRET: str = "your-secret-key-change-in-production"
    JWT_SECRET_KEY: str = "your-jwt-secret-change-in-production"
    JWT_ALGORITHM: str = "HS256"
    ACCESS_TOKEN_EXPIRE_DAYS: int = 7
    JWT_COOKIE_SECURE: bool = False  # Set to True in production (requires HTTPS)
    JWT_COOKIE_SAMESITE: str = "lax"  # "lax" | "strict" | "none" (use "none" for cross-site cookies in production)

    # CORS
    FRONTEND_URL: str = "https://delightful-water-0806a5b1e.2.azurestaticapps.net/"

    # AI API Keys
    GEMINI_API_KEY: Optional[str] = "AIzaSyCBmjyzgZq7snakqq1dvx4qVM2cdFgc0SU"
    OPENAI_API_KEY: Optional[str] = "AIzaSyDcrSw3MIP0f4uJAf8Ol6M2BB4KUpkBRqI"

    class Config:
        env_file = ".env"


settings = Settings()