Add PyJWT, bcrypt, openpyxl to requirements. Add JWT_SECRET, JWT_ACCESS_EXPIRES, JWT_REFRESH_EXPIRES to config. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
678 B
Python
26 lines
678 B
Python
"""
|
|
Central configuration for Nexus Autoparts.
|
|
"""
|
|
import os
|
|
|
|
# Database
|
|
DB_URL = os.environ.get(
|
|
"DATABASE_URL",
|
|
"postgresql://nexus:nexus_autoparts_2026@localhost/nexus_autoparts"
|
|
)
|
|
|
|
# Legacy SQLite path (used only by migration script)
|
|
SQLITE_PATH = os.path.join(
|
|
os.path.dirname(os.path.abspath(__file__)),
|
|
"vehicle_database", "vehicle_database.db"
|
|
)
|
|
|
|
# JWT Authentication
|
|
JWT_SECRET = os.environ.get("JWT_SECRET", "nexus-saas-secret-change-in-prod-2026")
|
|
JWT_ACCESS_EXPIRES = 900 # 15 minutes
|
|
JWT_REFRESH_EXPIRES = 2592000 # 30 days
|
|
|
|
# Application identity
|
|
APP_NAME = "NEXUS AUTOPARTS"
|
|
APP_SLOGAN = "Tu conexión directa con las partes que necesitas"
|