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
|
USER nextjs
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
EXPOSE 587
|
|
||||||
|
|
||||||
ENV PORT 3000
|
ENV PORT 3000
|
||||||
ENV HOSTNAME "0.0.0.0"
|
ENV HOSTNAME "0.0.0.0"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default async function Page({ searchParams }) {
|
|||||||
if (valid && validHostName) {
|
if (valid && validHostName) {
|
||||||
const transporter = nodemailer.createTransport({
|
const transporter = nodemailer.createTransport({
|
||||||
host: process.env.CONTACT_HOST,
|
host: process.env.CONTACT_HOST,
|
||||||
port: 587,
|
port: process.env.CONTACT_PORT,
|
||||||
secure: false, // true for 465, false for other ports
|
secure: false, // true for 465, false for other ports
|
||||||
auth: {
|
auth: {
|
||||||
user: process.env.CONTACT_USER,
|
user: process.env.CONTACT_USER,
|
||||||
|
|||||||
Reference in New Issue
Block a user