making port configurable

main
Thomas Hintz 2 weeks ago
parent 7e5b22aaec
commit ed467b6a3b

@ -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"

@ -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,

Loading…
Cancel
Save