fix: serve on port 80 to match Coolify/Traefik routing config
This commit is contained in:
+1
-1
@@ -36,6 +36,6 @@ COPY --from=frontend-build /app/frontend/dist ./public
|
|||||||
COPY start.sh ./
|
COPY start.sh ./
|
||||||
RUN chmod +x start.sh
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["./start.sh"]
|
CMD ["./start.sh"]
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import settingsRouter from './routes/settings';
|
|||||||
import notificationsRouter from './routes/notifications';
|
import notificationsRouter from './routes/notifications';
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const PORT = parseInt(process.env.PORT || '3000', 10);
|
const PORT = parseInt(process.env.PORT || '80', 10);
|
||||||
|
|
||||||
// Trust Coolify/Traefik reverse proxy
|
// Trust Coolify/Traefik reverse proxy
|
||||||
app.set('trust proxy', 1);
|
app.set('trust proxy', 1);
|
||||||
|
|||||||
@@ -179,5 +179,5 @@ async function seed() {
|
|||||||
seed();
|
seed();
|
||||||
" 2>/dev/null || echo "[start] Seed warning (continuing)"
|
" 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
|
exec node dist/index.js
|
||||||
|
|||||||
Reference in New Issue
Block a user