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:
5 files changed
+12
-7
No files matched your search
+2
-2
@@ -4,8 +4,8 @@ events {
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 7575;
|
||||
listen [::]:7575;
|
||||
listen ${PORT};
|
||||
listen [::]:${PORT};
|
||||
|
||||
# Route websockets traffic to port 3001
|
||||
location /websockets {
|
||||
|
||||
Reference in new issue
Block a user