mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 04:46:18 +00:00
fix
This commit is contained in:
1 parent
9ea8eb29df
commit
3d8e6f2215
1 file changed
+7
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Actions\Proxy;
|
||||
|
||||
use App\Enums\ProxyStatus;
|
||||
use App\Enums\ProxyTypes;
|
||||
use App\Models\Server;
|
||||
use Spatie\Activitylog\Models\Activity;
|
||||
use Illuminate\Support\Str;
|
||||
@@ -10,6 +12,11 @@ class InstallProxy
|
||||
{
|
||||
public function __invoke(Server $server): Activity
|
||||
{
|
||||
if (is_null(data_get($server, 'extra_attributes.proxy_type'))) {
|
||||
$server->extra_attributes->proxy_type = ProxyTypes::TRAEFIK_V2->value;
|
||||
$server->extra_attributes->proxy_status = ProxyStatus::EXITED->value;
|
||||
$server->save();
|
||||
}
|
||||
$proxy_path = config('coolify.proxy_config_path');
|
||||
|
||||
$networks = collect($server->standaloneDockers)->map(function ($docker) {
|
||||
|
||||
Reference in new issue
Block a user