File size: 407 Bytes
1bc6a5b
 
 
 
1333c38
 
 
 
 
 
 
 
 
 
 
1bc6a5b
 
1333c38
 
 
1bc6a5b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pydantic_settings import BaseSettings
from typing import Optional

class Settings(BaseSettings):
    # MongoDB Atlas
    MONGODB_URI: str
    DATABASE_NAME: str = "marketplace"
    COLLECTION_NAME: str = "product"
    
    # Gemini API
    GEMINI_API_KEY: str
    
    # Server
    HOST: str = "0.0.0.0"
    PORT: int = 7860
    
    class Config:
        env_file = ".env"
    
settings = Settings()