diff --git a/server.js b/server.js index fc15fd6..fba09c5 100644 --- a/server.js +++ b/server.js @@ -1,3 +1,4 @@ +import 'dotenv/config'; import express from 'express'; import cookieParser from 'cookie-parser'; import { dirname, join } from 'node:path'; @@ -9,7 +10,7 @@ import adminRoutes from './routes/admin.js'; const __dirname = dirname(fileURLToPath(import.meta.url)); const app = express(); -const PORT = process.env.PORT || 3000; +const PORT = process.env.PORT || 33033; // nginx terminates HTTPS in front of this app; trust its X-Forwarded-* headers // so secure cookies and req.protocol behave correctly.