Repository navigation
Installation App Installation
github-actions[bot] edited this page Oct 19, 2026
·
12 revisions
# Als CloudPanel-Site-User (z.B. clp-einsatz):
cd /home/clp-einsatz/htdocs/
git clone https://github.com/BattloXX/Einsatzcockpit.git einsatzleiter
cd einsatzleiterpython3.14 -m venv .venv
source .venv/bin/activatepip install --upgrade pip
pip install -e ".[dev]"Das installiert FastAPI, SQLAlchemy, WeasyPrint, pywebpush und alle weiteren Pakete aus
pyproject.toml.
cp .env.example .env
nano .env # oder vim .envPflichtfelder:
# Datenbankverbindung (aus dem Datenbank-Einrichten-Schritt):
DATABASE_URL=mysql+pymysql://einsatzleiter:PASSWORT@127.0.0.1:3306/einsatzleiter
# Zufälliger Session-Secret (min. 32 Zeichen):
SECRET_KEY=hier-einen-langen-zufaelligen-string-eintragen
# Öffentliche URL der App (für QR-Codes und Web-Push):
APP_BASE_URL=https://einsatzcockpit.com
# VAPID-Keys für Web-Push (Generierung siehe unten):
VAPID_PRIVATE_KEY=
VAPID_PUBLIC_KEY=
# Bootstrap-Admin (wird beim ersten Start automatisch angelegt):
BOOTSTRAP_ADMIN_USER=admin
BOOTSTRAP_ADMIN_PASSWORD=sicheres-admin-passwortpython3.14 -c "
from py_vapid import Vapid
v = Vapid()
v.generate_keys()
print('Private:', v.private_key.private_bytes(
__import__('cryptography.hazmat.primitives.serialization', fromlist=['Encoding','PrivateFormat','NoEncryption']).Encoding.PEM,
__import__('cryptography.hazmat.primitives.serialization', fromlist=['PrivateFormat']).PrivateFormat.PKCS8,
__import__('cryptography.hazmat.primitives.serialization', fromlist=['NoEncryption']).NoEncryption()
).decode())
print('Public:', v.public_key.public_bytes(
__import__('cryptography.hazmat.primitives.serialization', fromlist=['Encoding','PublicFormat']).Encoding.X962,
__import__('cryptography.hazmat.primitives.serialization', fromlist=['PublicFormat']).PublicFormat.UncompressedPoint
).hex())
"Alternativ: https://vapidkeys.com/ (Browser-Tool, kein Server-Upload)
source .venv/bin/activate
alembic upgrade headLegt alle Tabellen in der MariaDB an.
python -m app.seed_dataFüllt Fahrzeugliste Wolfurt, Nachbarwehren, Alarmstichwörter, Auftragsvorschläge, Qualifikationen.
uvicorn app.main:app --host 127.0.0.1 --port 8092Im Browser: http://127.0.0.1:8092/login
Login mit admin / dem Passwort aus BOOTSTRAP_ADMIN_PASSWORD.
Nächster Schritt: Systemd-Service einrichten
Einsatz führen
Im Einsatz
Einsatzbegleitend
Verwaltung & Planung
Auswertung
Großschadenslage
Verwaltung
Systemadministration
- Überblick und Inbetriebnahme
- Systemdiagnose
- Datenbank: Snapshot-Isolation
- System-Admin-MCP
- Zwei-Faktor-Authentifizierung
Mehr