diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 6cd944d..8205750 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -66,13 +66,26 @@ Docker-Service und stellt die Verbindungsdaten als Env-Variablen bereit. Unter **Application → Domains**: -- **Host:** `techno-todo.192.168.0.184.sslip.io` +- **Host:** `todo.kgessner.de` (öffentlich) oder `techno-todo.192.168.0.184.sslip.io` (LAN) - **Port:** `3000` - **HTTPS:** HTTP (für LAN-Test ausreichend) Dokploy erzeugt automatisch die Traefik-Routing-Konfiguration unter `/etc/dokploy/traefik/dynamic/.yml`. +**Per API** (mit gültigem API-Key, Header `x-api-key`): + +```bash +curl -X POST "https://dokploy.kgessner.de/api/domain.create" \ + -H "x-api-key: $DOKPLOY_API_KEY" \ + -H "Content-Type: application/json" \ + -d '{"host":"todo.kgessner.de","https":false,"port":3000,"applicationId":""}' +``` + +Der API-Key lässt sich über die Dokploy-UI (**Settings → API Keys**) erzeugen. Ist der +Key abgelaufen, kann man einen neuen direkt in der DB anlegen — der Hash ist +`base64url(SHA-256(key))` ohne Padding (BetterAuth-Mechanismus). + ### 6. Auto-Deploy aktivieren Dokploy hat einen nativen Auto-Deploy: In den **Application-Einstellungen** unter