Add AUTH_TRUST_HOST environment variable for Docker
- Set AUTH_TRUST_HOST=true in .env and docker-compose.yml - Ensures NextAuth trusts all hosts in Docker environment - Fixes UntrustedHost error
This commit is contained in:
@@ -11,6 +11,7 @@ services:
|
||||
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3500}
|
||||
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
||||
- AUTH_SECRET=${AUTH_SECRET}
|
||||
- AUTH_TRUST_HOST=true
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db-check
|
||||
|
||||
Reference in New Issue
Block a user