feat: added map merge with supabase structure
This commit is contained in:
@@ -9,15 +9,21 @@ class Settings(BaseSettings):
|
||||
algorithm: str = "HS256"
|
||||
access_token_expire_minutes: int = 60 * 24 # 24 horas
|
||||
|
||||
# SQLite
|
||||
# Database paths
|
||||
database_path: Optional[str] = None
|
||||
database_url: str = "sqlite:///./basura.db"
|
||||
|
||||
# Supabase
|
||||
supabase_url: Optional[str] = None
|
||||
supabase_anon_key: Optional[str] = None
|
||||
supabase_service_key: Optional[str] = None
|
||||
|
||||
# Redis
|
||||
redis_host: str = "localhost"
|
||||
redis_port: int = 6379
|
||||
redis_db: int = 0
|
||||
redis_password: Optional[str] = None
|
||||
|
||||
|
||||
# Cache settings
|
||||
cache_enabled: bool = True
|
||||
cache_ttl_eta: int = 30 # 30 segundos para ETA
|
||||
@@ -30,6 +36,7 @@ class Settings(BaseSettings):
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
extra = "allow" # Permitir variables extras del .env
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user