From 519eed2d8e59b8a5b143c7b805aa62d683a468d3 Mon Sep 17 00:00:00 2001 From: sneedmaster Date: Sat, 30 May 2026 10:54:17 +0200 Subject: [PATCH] Configurable host --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 11b7f7d..29579d5 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ import { execa } from "execa"; dotenv.config(); +const HOST = process.env.HOST || "127.0.0.1"; const PORT = process.env.PORT || 3000; const CONTAINER = process.env.CONTAINER || "mailserver"; const INVITE_CODE = process.env.INVITE_CODE; @@ -66,4 +67,4 @@ app.post("/register", async (req, res) => { } }); -app.listen(PORT); +app.listen(PORT, HOST);