feat: respect PORT env variable for Coolify preview deployments

Nginx now listens on ${PORT} (default 7575) instead of hardcoded 7575,
so Coolify can inject a unique port per preview container. The internal
Next.js server is pinned to port 3000 to avoid conflicting with nginx.
This commit is contained in:
Thomas Camlong committed 2026-06-08 16:44:16 +02:00
1 parent a447a9f615
commit e004afa806
5 files changed
+12 -7

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ events {
http {
server {
listen 7575;
listen [::]:7575;
listen ${PORT};
listen [::]:${PORT};
# Route websockets traffic to port 3001
location /websockets {