Files
Plenario/docs/configuration.md
T
gnilebeinandClaude Sonnet 5.5 ae57bf1352
CI / Deploy / PHP 8.4 (push) Successful in 1m18s
CI / Deploy / PHP 8.5 (push) Successful in 1m13s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Move deployment and configuration docs out of the README
README keeps overview, features, local setup, privacy and links;
operator instructions live in docs/deployment.md and
docs/configuration.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:00:27 +01:00

36 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Konfiguration
Alle Einstellungen über Umgebungsvariablen oder `config/.env`. Anleitung zum Betrieb: [deployment.md](deployment.md).
Alle Einstellungen gehen über Umgebungsvariablen oder `config/.env`
(Vorlage mit allen Variablen: [config/.env.example](../config/.env.example)). Echte Umgebungsvariablen
haben Vorrang vor der Datei.
| Variable | Bedeutung |
|---|---|
| `DEBUG` | `false` in Produktion |
| `APP_FULL_BASE_URL` | Absolute URL, wird für Links in E-Mails gebraucht (Pflicht in Produktion). In Produktion wird außerdem der Host-Header dagegen geprüft |
| `SECURITY_SALT` | Langer Zufallswert. **Nicht nachträglich ändern** – damit werden Admin-Tokens verschlüsselt und Teilnehmer-IDs gehasht |
| `DATABASE_URL` | Leer = SQLite in `data/`. Sonst z. B. `mysql://user:pw@host/plenario?encoding=utf8mb4` oder `postgres://user:pw@host/plenario` |
| `SMTP_HOST`, `SMTP_PORT`, `SMTP_USER`, `SMTP_PASSWORD` | Mailserver (Port Standard 587). Ohne `SMTP_HOST` werden Mails nur als Datei abgelegt |
| `SMTP_TLS` | `true` (Standard) = STARTTLS; Port 465 nutzt automatisch SSL; `false` = unverschlüsselt |
| `MAIL_FROM`, `MAIL_FROM_NAME` | Absender |
| `CAPTCHA_TYPE` | `none`, `math` (Standard) oder `recaptcha` |
| `RECAPTCHA_SITE_KEY`, `RECAPTCHA_SECRET_KEY` | Für reCAPTCHA v2 („Ich bin kein Roboter“) |
| `SHOW_ADMIN_LINK_AFTER_CREATE` | Nur für Entwicklung |
| `THROTTLE_CREATE_PER_HOUR`, `THROTTLE_RECOVER_PER_HOUR` | Umfragen bzw. Wiederherstellungs-Mails pro IP und Stunde (0 = aus) |
| `THROTTLE_VOTES_PER_MINUTE` | Antworten pro IP und Minute (0 = aus). Hoch lassen: Oft teilt sich ein ganzer Saal eine IP |
| `POLL_RETENTION_DAYS` | Umfragen werden so viele Tage nach dem Anlegen vom Cronjob gelöscht (Standard 90, 0 = nie) |
| `POLL_REMINDER_DAYS` | So viele Tage vorher bekommt der Besitzer eine Erinnerungsmail (Standard 14, 0 = keine, muss kleiner als die Laufzeit sein) |
| `POLL_INTERVAL_MS` | Aktualisierungsintervall der Live-Ansichten |
| `EMBED_HEARTBEAT_SECONDS`, `EMBED_TIMEOUT_SECONDS` | Eingebettete Folien: Lebenszeichen-Intervall und Zeit bis zur automatischen Pause |
| `EMBED_FRAME_ANCESTORS` | Welche Seiten Folien einbetten dürfen (CSP `frame-ancestors`), z. B. `https://*.canva.com`; `*` = alle |
Einen `SECURITY_SALT` erzeugen:
```bash
php -r "echo bin2hex(random_bytes(32));"
# oder ohne PHP:
openssl rand -hex 32
```