fix: serve on port 80 to match Coolify/Traefik routing config

This commit is contained in:
BetterHuman
2026-05-06 04:18:44 +00:00
parent 5b03454bf9
commit 2b8854130a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -36,6 +36,6 @@ COPY --from=frontend-build /app/frontend/dist ./public
COPY start.sh ./
RUN chmod +x start.sh
EXPOSE 3000
EXPOSE 80
CMD ["./start.sh"]
+1 -1
View File
@@ -22,7 +22,7 @@ import settingsRouter from './routes/settings';
import notificationsRouter from './routes/notifications';
const app = express();
const PORT = parseInt(process.env.PORT || '3000', 10);
const PORT = parseInt(process.env.PORT || '80', 10);
// Trust Coolify/Traefik reverse proxy
app.set('trust proxy', 1);
+1 -1
View File
@@ -179,5 +179,5 @@ async function seed() {
seed();
" 2>/dev/null || echo "[start] Seed warning (continuing)"
echo "[start] Starting Node.js backend on port 3000..."
echo "[start] Starting Node.js backend on port ${PORT:-80}..."
exec node dist/index.js