Fix NextAuth trusted host for Docker deployment
- Add trustHost: true to auth.config.ts - Remove obsolete version field from docker-compose.yml
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import type { NextAuthConfig } from "next-auth"
|
import type { NextAuthConfig } from "next-auth"
|
||||||
|
|
||||||
export const authConfig = {
|
export const authConfig = {
|
||||||
|
trustHost: true,
|
||||||
session: {
|
session: {
|
||||||
strategy: "jwt",
|
strategy: "jwt",
|
||||||
maxAge: 30 * 24 * 60 * 60, // 30 days in seconds
|
maxAge: 30 * 24 * 60 * 60, // 30 days in seconds
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user