Skip to content

Commit 13e8d3c

Browse files
committed
fix: update Traefik labels on init
1 parent 5d384b1 commit 13e8d3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Console/Commands/Init.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function handle()
5959
if ($full_cleanup) {
6060
// Required for falsely deleted coolify db
6161
$this->restore_coolify_db_backup();
62+
$this->update_traefik_labels();
6263
$this->cleanup_unused_network_from_coolify_proxy();
6364
$this->cleanup_unnecessary_dynamic_proxy_configuration();
6465
$this->cleanup_in_progress_application_deployments();
@@ -96,6 +97,11 @@ public function handle()
9697
$this->call('cleanup:stucked-resources');
9798
}
9899

100+
private function update_traefik_labels()
101+
{
102+
Server::where('proxy->type', 'TRAEFIK_V2')->update(['proxy->type' => 'TRAEFIK']);
103+
}
104+
99105
private function cleanup_unnecessary_dynamic_proxy_configuration()
100106
{
101107
if (isCloud()) {

0 commit comments

Comments
 (0)