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);