making port configurable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user