This commit is contained in:
Andras Bacsai
2023-05-26 09:45:18 +02:00
parent 6f50f857c6
commit c5a40926e3
5 changed files with 9 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Jobs;
use App\Actions\Proxy\InstallProxy;
use App\Enums\ProxyTypes;
use App\Models\Server;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
@@ -29,7 +30,7 @@ class InstanceProxyCheckJob implements ShouldQueue
try {
$container_name = 'coolify-proxy';
$configuration_path = config('coolify.proxy_config_path');
$servers = Server::whereRelation('settings', 'is_validated', true)->get();
$servers = Server::whereRelation('settings', 'is_validated', true)->where('extra_attributes->proxy_type', ProxyTypes::TRAEFIK_V2)->get();
foreach ($servers as $server) {
$status = get_container_status(server: $server, container_id: $container_name);