-
Notifications
You must be signed in to change notification settings - Fork 349
Enable self-hosted deployment with BunMail, SMTP, and Docker fixes. #3491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ import { PrismaPg } from '@prisma/adapter-pg'; | |
|
|
||
| const globalForPrisma = global as unknown as { prisma?: PrismaClient }; | ||
|
|
||
| const LOCAL_HOSTNAMES = new Set(['localhost', '127.0.0.1', '::1']); | ||
| const LOCAL_HOSTNAMES = new Set(['localhost', '127.0.0.1', '::1', 'comp-postgres']); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: The Prompt for AI agents |
||
|
|
||
| function stripSslMode(connectionString: string): string { | ||
| const url = new URL(connectionString); | ||
|
|
@@ -61,7 +61,7 @@ function createPrismaClient(): PrismaClient { | |
| } | ||
| // Strip sslmode from the connection string to avoid conflicts with the explicit ssl option | ||
| const url = ssl !== undefined ? stripSslMode(rawUrl) : rawUrl; | ||
| const adapter = new PrismaPg({ connectionString: url, ssl }); | ||
| const adapter = new PrismaPg({ connectionString: url, ssl: ssl ?? false }); | ||
| return new PrismaClient({ | ||
| adapter, | ||
| transactionOptions: { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: A changed or compromised NodeSource setup response executes arbitrary code as root during migrator builds because this mutable remote script is piped directly to
bash. Use a pinned Node base/stage or verify a checksummed/signed artifact before execution.Prompt for AI agents