mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-19 05:08:20 +02:00
Rend AUTH_SECRET optionnel : génération auto + persistance au déploiement
Le compose ne requiert plus AUTH_SECRET (`:?` retiré). Si la variable est vide, docker-entrypoint.sh génère un secret aléatoire et le persiste dans le volume app-data (/app/data/auth_secret), réutilisé aux redémarrages. Surcharge possible en définissant AUTH_SECRET. Déploiement Portainer sans configuration requise. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL
This commit is contained in:
5 files changed
+30
-6
No files matched your search
+3
-2
@@ -11,8 +11,9 @@ POSTGRES_PASSWORD=pleinr
|
||||
POSTGRES_DB=pleinr
|
||||
|
||||
# ---- Auth.js (NextAuth v5) ----
|
||||
# Generate with: openssl rand -base64 32
|
||||
AUTH_SECRET=change-me-to-a-long-random-string
|
||||
# Optional with docker-compose: if left unset, the container generates and
|
||||
# persists one automatically. To set it yourself: openssl rand -base64 32
|
||||
AUTH_SECRET=
|
||||
# Public URL of the app (used by Auth.js for callbacks).
|
||||
# With docker-compose the app is published on host port 8413 by default.
|
||||
AUTH_URL=http://localhost:8413
|
||||
|
||||
Reference in new issue
Block a user