Skip to content

Commit

Permalink
keep trustOptions as config option for now
Browse files Browse the repository at this point in the history
  • Loading branch information
masterkain committed Dec 23, 2024
1 parent 92f834a commit 061248d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# DATABASE_URL="postgresql://airbroke:airbroke@localhost:6432/airbroke-development?schema=public&pgbouncer=true"
# DIRECT_URL="postgresql://airbroke:airbroke@localhost:5432/airbroke-development?schema=public"

AUTH_TRUST_HOST="true"

# Endpoint protection
AIRBROKE_CORS_ORIGINS="http://localhost:3000,https://my.browserapp.tld"
AIRBROKE_LOG_LEVEL='' # leave blank or set 'verbose'
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ARG DEBUG_TOOLS
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV CHECKPOINT_DISABLE=1
ENV AUTH_TRUST_HOST=true

# debug cache filesystem in a live env, to be removed
# inotifywait -m -r -e create,modify,delete /app
Expand Down
3 changes: 3 additions & 0 deletions lib/auth.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// lib/auth.ts

import prisma from '@/lib/db';
import AtlassianProvider from '@auth/core/providers/atlassian';
import CognitoProvider from '@auth/core/providers/cognito';
Expand Down Expand Up @@ -116,6 +118,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
},
debug: process.env.AUTH_DEBUG === 'true',
providers: getProviders(),
trustHost: true,
adapter: CustomPrismaAdapter(),
callbacks: {
jwt({ token, account, user }) {
Expand Down

0 comments on commit 061248d

Please sign in to comment.