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 ./
|
||||
RUN chmod +x start.sh
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["./start.sh"]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user