mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-14 18:59:41 +02:00
Corrige la redirection login derrière un reverse proxy (AUTH_URL)
La redirection vers /login utilisait http://localhost:8413 (ancienne valeur par défaut d'AUTH_URL). On retire ce défaut localhost : AUTH_URL prend la valeur fournie (ex. https://pleinr.ffnancy.fr) et pilote la redirection. Ajout de AUTH_TRUST_HOST=true (confiance aux en-têtes X-Forwarded-*) et l'entrypoint supprime AUTH_URL si vide. Vérifié : la redirection pointe vers le domaine public. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL
This commit is contained in:
4 files changed
+18
-3
No files matched your search
@@ -16,6 +16,12 @@ if [ -z "$AUTH_SECRET" ]; then
|
||||
export AUTH_SECRET
|
||||
fi
|
||||
|
||||
# If AUTH_URL is empty, unset it so Auth.js derives the public URL from the
|
||||
# reverse-proxy headers (trustHost) instead of falling back to a hardcoded host.
|
||||
if [ -z "$AUTH_URL" ]; then
|
||||
unset AUTH_URL
|
||||
fi
|
||||
|
||||
echo "→ Applying database migrations…"
|
||||
node dist/migrate.cjs
|
||||
|
||||
|
||||
Reference in new issue
Block a user