From ed467b6a3be6467c5cff146391002ffe2353070c Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Wed, 16 Jul 2025 07:07:28 -0700 Subject: [PATCH] making port configurable --- Dockerfile | 1 - src/app/(main)/contact-us/page.jsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0352eb..f3e4281 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,7 +52,6 @@ COPY --from=builder /app/node_modules/next/dist/compiled/jest-worker ./node_modu USER nextjs EXPOSE 3000 -EXPOSE 587 ENV PORT 3000 ENV HOSTNAME "0.0.0.0" diff --git a/src/app/(main)/contact-us/page.jsx b/src/app/(main)/contact-us/page.jsx index 7db899f..f803902 100644 --- a/src/app/(main)/contact-us/page.jsx +++ b/src/app/(main)/contact-us/page.jsx @@ -23,7 +23,7 @@ export default async function Page({ searchParams }) { if (valid && validHostName) { const transporter = nodemailer.createTransport({ host: process.env.CONTACT_HOST, - port: 587, + port: process.env.CONTACT_PORT, secure: false, // true for 465, false for other ports auth: { user: process.env.CONTACT_USER,