Modules: Dashboard, Serveurs, Campagnes, Planning, Specifiques, Settings, Users Stack: FastAPI + Jinja2 + HTMX + Alpine.js + TailwindCSS + PostgreSQL Features: Qualys sync, prereqs auto, planning annuel, server specifics, role-based access Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
671 B
Python
19 lines
671 B
Python
import os
|
|
|
|
DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://patchcenter:PatchCenter2026!@localhost:5432/patchcenter_db")
|
|
SECRET_KEY = os.getenv("SECRET_KEY", "slpm-patchcenter-secret-key-2026-change-in-production")
|
|
ALGORITHM = "HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES = 480 # 8 heures
|
|
APP_NAME = "PatchCenter"
|
|
APP_VERSION = "2.0"
|
|
|
|
# Qualys API
|
|
QUALYS_URL = os.getenv("QUALYS_URL", "https://qualysapi.qualys.eu")
|
|
QUALYS_USER = os.getenv("QUALYS_USER", "sanef-ae")
|
|
QUALYS_PASS = os.getenv("QUALYS_PASS", 'DW:Q\\*"JEZr2tjZ=!Ox4')
|
|
|
|
# iTop API (a configurer)
|
|
ITOP_URL = os.getenv("ITOP_URL", "")
|
|
ITOP_USER = os.getenv("ITOP_USER", "")
|
|
ITOP_PASS = os.getenv("ITOP_PASS", "")
|