port from env

This commit is contained in:
Daniël 2024-06-09 14:21:40 +02:00 committed by GitHub
parent 7082457c35
commit 8075a58510
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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