File size: 834 Bytes
0d42de6
 
 
 
 
 
12ce5a9
0d42de6
 
 
 
 
 
cf99771
 
0d42de6
 
7d50590
0d42de6
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pydantic_settings import BaseSettings
from typing import Optional


class Settings(BaseSettings):
    # Database
    DATABASE_URL: str = "postgresql://neondb_owner:npg_Imp6l1hHrFso@ep-red-night-admn9jjs-pooler.c-2.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 = True  # Set to True in production
    JWT_COOKIE_SAMESITE: str = "none"  # "lax" | "strict" | "none" (use "none" for cross-site cookies in production)

    # CORS
    FRONTEND_URL: str = "https://task-flow-roan-beta.vercel.app"

    class Config:
        env_file = ".env"


settings = Settings()