From 86ef3c41d5064b82e27ae7d341ba84fb188c402a Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Tue, 2 Dec 2025 12:15:08 +0000 Subject: [PATCH] Fix NextAuth trusted host for Docker deployment - Add trustHost: true to auth.config.ts - Remove obsolete version field from docker-compose.yml --- auth.config.ts | 1 + docker-compose.yml | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/auth.config.ts b/auth.config.ts index f570814..5c021ec 100644 --- a/auth.config.ts +++ b/auth.config.ts @@ -1,6 +1,7 @@ import type { NextAuthConfig } from "next-auth" export const authConfig = { + trustHost: true, session: { strategy: "jwt", maxAge: 30 * 24 * 60 * 60, // 30 days in seconds diff --git a/docker-compose.yml b/docker-compose.yml index c42d83d..9b8e255 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: app: build: