feat: sentinel + charts
This commit is contained in:
@@ -157,10 +157,12 @@ function get_route_parameters(): array
|
||||
|
||||
function get_latest_sentinel_version(): string
|
||||
{
|
||||
if (isDev()) {
|
||||
return '0.0.8';
|
||||
}
|
||||
try {
|
||||
$response = Http::get('https://cdn.coollabs.io/coolify/versions.json');
|
||||
$versions = $response->json();
|
||||
|
||||
return data_get($versions, 'coolify.sentinel.version');
|
||||
} catch (\Throwable $e) {
|
||||
//throw $e;
|
||||
@@ -2282,3 +2284,8 @@ function isAnyDeploymentInprogress()
|
||||
echo "No deployments in progress.\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
function generateSentinelToken() {
|
||||
$token = Str::random(64);
|
||||
return $token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user