An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(proxy): filter host network from default proxy (#6383)
Aditya Tripathi8a35295f1317
diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.phpindex cabdabaa74..2d479a1935 100644--- a/bootstrap/helpers/proxy.php+++ b/bootstrap/helpers/proxy.php@@ -130,10 +130,16 @@ function generate_default_proxy_configuration(Server $server)}$array_of_networks = collect([]);- $networks->map(function ($network) use ($array_of_networks) {+ $filtered_networks = collect([]);+ $networks->map(function ($network) use ($array_of_networks, $filtered_networks) {+ if ($network === 'host') {+ return; // network-scoped alias is supported only for containers in user defined networks+ }+$array_of_networks[$network] = ['external' => true,];+ $filtered_networks->push($network);});if ($proxy_type === ProxyTypes::TRAEFIK->value) {$labels = [@@ -155,7 +161,7 @@ function generate_default_proxy_configuration(Server $server)'extra_hosts' => ['host.docker.internal:host-gateway',],- 'networks' => $networks->toArray(),+ 'networks' => $filtered_networks->toArray(),'ports' => ['80:80','443:443',@@ -237,7 +243,7 @@ function generate_default_proxy_configuration(Server $server)'CADDY_DOCKER_POLLING_INTERVAL=5s','CADDY_DOCKER_CADDYFILE_PATH=/dynamic/Caddyfile',],- 'networks' => $networks->toArray(),+ 'networks' => $filtered_networks->toArray(),'ports' => ['80:80','443:443',