From e51207a35e5402b306b53061f8bde7b75b935bbe Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:33:12 +0100 Subject: [PATCH] fix: bind() to 0.0.0.0:80 failed --- config/constants.php | 2 +- docker-compose.dev.yml | 2 +- docker-compose.prod.yml | 4 ++-- docker/coolify-realtime/terminal-server.js | 2 +- docker/development/etc/nginx/site-opts.d/http.conf | 2 -- docker/production/etc/nginx/site-opts.d/http.conf | 2 -- other/nightly/docker-compose.prod.yml | 4 ++-- versions.json | 4 ++-- 8 files changed, 9 insertions(+), 13 deletions(-) diff --git a/config/constants.php b/config/constants.php index a8a70235b1..99859ffb87 100644 --- a/config/constants.php +++ b/config/constants.php @@ -2,7 +2,7 @@ return [ 'coolify' => [ - 'version' => '4.0.0-beta.379', + 'version' => '4.0.0-beta.380', 'self_hosted' => env('SELF_HOSTED', true), 'autoupdate' => env('AUTOUPDATE'), 'base_config_path' => env('BASE_CONFIG_PATH', '/data/coolify'), diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 76f8e9ca64..3fadd914c1 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -7,7 +7,7 @@ services: - USER_ID=${USERID:-1000} - GROUP_ID=${GROUPID:-1000} ports: - - "${APP_PORT:-8000}:80" + - "${APP_PORT:-8000}:8080" environment: AUTORUN_ENABLED: false PUSHER_HOST: "${PUSHER_HOST}" diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index d86b2336bf..cb8f6b3266 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -54,7 +54,7 @@ services: - SSH_MUX_ENABLED - SSH_MUX_PERSIST_TIME ports: - - "${APP_PORT:-8000}:80" + - "${APP_PORT:-8000}:8080" expose: - "${APP_PORT:-8000}" healthcheck: @@ -93,7 +93,7 @@ services: retries: 10 timeout: 2s soketi: - image: 'ghcr.io/coollabsio/coolify-realtime:1.0.4' + image: 'ghcr.io/coollabsio/coolify-realtime:1.0.5' ports: - "${SOKETI_PORT:-6001}:6001" - "6002:6002" diff --git a/docker/coolify-realtime/terminal-server.js b/docker/coolify-realtime/terminal-server.js index 6633204b28..6649f866cd 100755 --- a/docker/coolify-realtime/terminal-server.js +++ b/docker/coolify-realtime/terminal-server.js @@ -33,7 +33,7 @@ const verifyClient = async (info, callback) => { try { // Authenticate with Laravel backend - const response = await axios.post(`http://coolify/terminal/auth`, null, { + const response = await axios.post(`http://coolify:8080/terminal/auth`, null, { headers: { 'Cookie': `${sessionCookieName}=${laravelSession}`, 'X-XSRF-TOKEN': xsrfToken diff --git a/docker/development/etc/nginx/site-opts.d/http.conf b/docker/development/etc/nginx/site-opts.d/http.conf index 41735cf06c..e740918a5b 100644 --- a/docker/development/etc/nginx/site-opts.d/http.conf +++ b/docker/development/etc/nginx/site-opts.d/http.conf @@ -1,5 +1,3 @@ -listen 80 default_server; -listen [::]:80 default_server; listen 8080 default_server; listen [::]:8080 default_server; diff --git a/docker/production/etc/nginx/site-opts.d/http.conf b/docker/production/etc/nginx/site-opts.d/http.conf index 41735cf06c..e740918a5b 100644 --- a/docker/production/etc/nginx/site-opts.d/http.conf +++ b/docker/production/etc/nginx/site-opts.d/http.conf @@ -1,5 +1,3 @@ -listen 80 default_server; -listen [::]:80 default_server; listen 8080 default_server; listen [::]:8080 default_server; diff --git a/other/nightly/docker-compose.prod.yml b/other/nightly/docker-compose.prod.yml index d86b2336bf..cb8f6b3266 100644 --- a/other/nightly/docker-compose.prod.yml +++ b/other/nightly/docker-compose.prod.yml @@ -54,7 +54,7 @@ services: - SSH_MUX_ENABLED - SSH_MUX_PERSIST_TIME ports: - - "${APP_PORT:-8000}:80" + - "${APP_PORT:-8000}:8080" expose: - "${APP_PORT:-8000}" healthcheck: @@ -93,7 +93,7 @@ services: retries: 10 timeout: 2s soketi: - image: 'ghcr.io/coollabsio/coolify-realtime:1.0.4' + image: 'ghcr.io/coollabsio/coolify-realtime:1.0.5' ports: - "${SOKETI_PORT:-6001}:6001" - "6002:6002" diff --git a/versions.json b/versions.json index c5f41a4dbb..d002729879 100644 --- a/versions.json +++ b/versions.json @@ -1,10 +1,10 @@ { "coolify": { "v4": { - "version": "4.0.0-beta.379" + "version": "4.0.0-beta.380" }, "nightly": { - "version": "4.0.0-beta.380" + "version": "4.0.0-beta.381" }, "helper": { "version": "1.0.4"