From 8075a5851048384476584c814a5a1870e3bd6c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl?= Date: Sun, 9 Jun 2024 14:21:40 +0200 Subject: [PATCH] port from env --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cc98380..4222ffa 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ const fileRoutes = require("./routes/file.routes"); const helmet = require("helmet"); const app = express(); -const port = 3000; +const port = process.env.PORT; const apiKeys = process.env.API_KEYS.split(","); const allowPublicUploads = process.env.ALLOW_PUBLIC_UPLOADS === "true"; const hosterEmail = process.env.HOSTER_EMAIL;