forked from jappel/leistungsbilanz-ts
Add login-required user management (admin/user roles, Config->Benutzer)
No self-signup: admins create every account in Config -> Benutzer with a typed start password; a forced password change gates first use. Session- cookie auth protects all /api/* routes; /api/users additionally requires the admin role. See docs/authentication.md. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
b50c00c0ac
commit
c56cfb30ad
36 changed files with 4928 additions and 38 deletions
11
compose.yaml
11
compose.yaml
|
|
@ -45,8 +45,15 @@ services:
|
|||
NODE_ENV: production
|
||||
PORT: "3000"
|
||||
LOG_LEVEL: "${LOG_LEVEL:-info}"
|
||||
# Nicht auf dem Host veroeffentlicht: die API hat keine Authentifizierung
|
||||
# und wird ueber den Next.js-Rewrite im Web-Dienst erreicht.
|
||||
# AUTH_BOOTSTRAP_* legen nur den allerersten Admin an (solange die
|
||||
# users-Tabelle leer ist) und gehoeren in eine lokale, nicht versionierte
|
||||
# .env - siehe docs/AUTH.md.
|
||||
AUTH_BOOTSTRAP_USERNAME: "${AUTH_BOOTSTRAP_USERNAME:-}"
|
||||
AUTH_BOOTSTRAP_PASSWORT: "${AUTH_BOOTSTRAP_PASSWORT:-}"
|
||||
AUTH_SESSION_HOURS: "${AUTH_SESSION_HOURS:-12}"
|
||||
COOKIE_SECURE: "${COOKIE_SECURE:-false}"
|
||||
# Nicht auf dem Host veroeffentlicht: die API wird ueber den
|
||||
# Next.js-Rewrite im Web-Dienst erreicht.
|
||||
expose:
|
||||
- "3000"
|
||||
# Harte Obergrenze statt unbegrenztem Wachstum. memswap_limit == mem_limit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue