Fix styling
This commit is contained in:
parent
6cc86a3c82
commit
f76d45b826
@ -81,7 +81,7 @@ public function handle()
|
|||||||
}
|
}
|
||||||
set_transanctional_email_settings();
|
set_transanctional_email_settings();
|
||||||
|
|
||||||
$this->mail = new MailMessage();
|
$this->mail = new MailMessage;
|
||||||
$this->mail->subject('Test Email');
|
$this->mail->subject('Test Email');
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'updates':
|
case 'updates':
|
||||||
@ -107,7 +107,7 @@ public function handle()
|
|||||||
$confirmed = confirm('Are you sure?');
|
$confirmed = confirm('Are you sure?');
|
||||||
if ($confirmed) {
|
if ($confirmed) {
|
||||||
foreach ($emails as $email) {
|
foreach ($emails as $email) {
|
||||||
$this->mail = new MailMessage();
|
$this->mail = new MailMessage;
|
||||||
$this->mail->subject('One-click Services, Docker Compose support');
|
$this->mail->subject('One-click Services, Docker Compose support');
|
||||||
$unsubscribeUrl = route('unsubscribe.marketing.emails', [
|
$unsubscribeUrl = route('unsubscribe.marketing.emails', [
|
||||||
'token' => encrypt($email),
|
'token' => encrypt($email),
|
||||||
@ -118,7 +118,7 @@ public function handle()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'emails-test':
|
case 'emails-test':
|
||||||
$this->mail = (new Test())->toMail();
|
$this->mail = (new Test)->toMail();
|
||||||
$this->sendEmail();
|
$this->sendEmail();
|
||||||
break;
|
break;
|
||||||
case 'database-backup-statuses-daily':
|
case 'database-backup-statuses-daily':
|
||||||
@ -224,7 +224,7 @@ public function handle()
|
|||||||
// $this->sendEmail();
|
// $this->sendEmail();
|
||||||
// break;
|
// break;
|
||||||
case 'waitlist-invitation-link':
|
case 'waitlist-invitation-link':
|
||||||
$this->mail = new MailMessage();
|
$this->mail = new MailMessage;
|
||||||
$this->mail->view('emails.waitlist-invitation', [
|
$this->mail->view('emails.waitlist-invitation', [
|
||||||
'loginLink' => 'https://coolify.io',
|
'loginLink' => 'https://coolify.io',
|
||||||
]);
|
]);
|
||||||
@ -241,7 +241,7 @@ public function handle()
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case 'realusers-before-trial':
|
case 'realusers-before-trial':
|
||||||
$this->mail = new MailMessage();
|
$this->mail = new MailMessage;
|
||||||
$this->mail->view('emails.before-trial-conversion');
|
$this->mail->view('emails.before-trial-conversion');
|
||||||
$this->mail->subject('Trial period has been added for all subscription plans.');
|
$this->mail->subject('Trial period has been added for all subscription plans.');
|
||||||
$teams = Team::doesntHave('subscription')->where('id', '!=', 0)->get();
|
$teams = Team::doesntHave('subscription')->where('id', '!=', 0)->get();
|
||||||
@ -287,7 +287,7 @@ public function handle()
|
|||||||
foreach ($admins as $admin) {
|
foreach ($admins as $admin) {
|
||||||
$this->info($admin);
|
$this->info($admin);
|
||||||
}
|
}
|
||||||
$this->mail = new MailMessage();
|
$this->mail = new MailMessage;
|
||||||
$this->mail->view('emails.server-lost-connection', [
|
$this->mail->view('emails.server-lost-connection', [
|
||||||
'name' => $server->name,
|
'name' => $server->name,
|
||||||
]);
|
]);
|
||||||
|
@ -103,7 +103,7 @@ private function send_email()
|
|||||||
{
|
{
|
||||||
$token = Crypt::encryptString("{$this->next_patient->email}@@@$this->password");
|
$token = Crypt::encryptString("{$this->next_patient->email}@@@$this->password");
|
||||||
$loginLink = route('auth.link', ['token' => $token]);
|
$loginLink = route('auth.link', ['token' => $token]);
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->view('emails.waitlist-invitation', [
|
$mail->view('emails.waitlist-invitation', [
|
||||||
'loginLink' => $loginLink,
|
'loginLink' => $loginLink,
|
||||||
]);
|
]);
|
||||||
|
@ -708,7 +708,7 @@ private function create_application(Request $request, $type)
|
|||||||
if ($return instanceof \Illuminate\Http\JsonResponse) {
|
if ($return instanceof \Illuminate\Http\JsonResponse) {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
$application = new Application();
|
$application = new Application;
|
||||||
removeUnnecessaryFieldsFromRequest($request);
|
removeUnnecessaryFieldsFromRequest($request);
|
||||||
|
|
||||||
$application->fill($request->all());
|
$application->fill($request->all());
|
||||||
@ -796,7 +796,7 @@ private function create_application(Request $request, $type)
|
|||||||
if (str($gitRepository)->startsWith('http') || str($gitRepository)->contains('github.com')) {
|
if (str($gitRepository)->startsWith('http') || str($gitRepository)->contains('github.com')) {
|
||||||
$gitRepository = str($gitRepository)->replace('https://', '')->replace('http://', '')->replace('github.com/', '');
|
$gitRepository = str($gitRepository)->replace('https://', '')->replace('http://', '')->replace('github.com/', '');
|
||||||
}
|
}
|
||||||
$application = new Application();
|
$application = new Application;
|
||||||
removeUnnecessaryFieldsFromRequest($request);
|
removeUnnecessaryFieldsFromRequest($request);
|
||||||
|
|
||||||
$application->fill($request->all());
|
$application->fill($request->all());
|
||||||
@ -890,7 +890,7 @@ private function create_application(Request $request, $type)
|
|||||||
return response()->json(['message' => 'Private Key not found.'], 404);
|
return response()->json(['message' => 'Private Key not found.'], 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
$application = new Application();
|
$application = new Application;
|
||||||
removeUnnecessaryFieldsFromRequest($request);
|
removeUnnecessaryFieldsFromRequest($request);
|
||||||
|
|
||||||
$application->fill($request->all());
|
$application->fill($request->all());
|
||||||
@ -988,7 +988,7 @@ private function create_application(Request $request, $type)
|
|||||||
$port = 80;
|
$port = 80;
|
||||||
}
|
}
|
||||||
|
|
||||||
$application = new Application();
|
$application = new Application;
|
||||||
$application->fill($request->all());
|
$application->fill($request->all());
|
||||||
$application->fqdn = $fqdn;
|
$application->fqdn = $fqdn;
|
||||||
$application->ports_exposes = $port;
|
$application->ports_exposes = $port;
|
||||||
@ -1046,7 +1046,7 @@ private function create_application(Request $request, $type)
|
|||||||
if (! $request->docker_registry_image_tag) {
|
if (! $request->docker_registry_image_tag) {
|
||||||
$request->offsetSet('docker_registry_image_tag', 'latest');
|
$request->offsetSet('docker_registry_image_tag', 'latest');
|
||||||
}
|
}
|
||||||
$application = new Application();
|
$application = new Application;
|
||||||
removeUnnecessaryFieldsFromRequest($request);
|
removeUnnecessaryFieldsFromRequest($request);
|
||||||
|
|
||||||
$application->fill($request->all());
|
$application->fill($request->all());
|
||||||
@ -1140,7 +1140,7 @@ private function create_application(Request $request, $type)
|
|||||||
// return $this->dispatch('error', "Invalid docker-compose file.\n$isValid");
|
// return $this->dispatch('error', "Invalid docker-compose file.\n$isValid");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
$service = new Service();
|
$service = new Service;
|
||||||
removeUnnecessaryFieldsFromRequest($request);
|
removeUnnecessaryFieldsFromRequest($request);
|
||||||
$service->fill($request->all());
|
$service->fill($request->all());
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ public function upload(Request $request)
|
|||||||
$receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
|
$receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
|
||||||
|
|
||||||
if ($receiver->isUploaded() === false) {
|
if ($receiver->isUploaded() === false) {
|
||||||
throw new UploadMissingFileException();
|
throw new UploadMissingFileException;
|
||||||
}
|
}
|
||||||
|
|
||||||
$save = $receiver->receive();
|
$save = $receiver->receive();
|
||||||
|
@ -991,7 +991,7 @@ private function laravel_finetunes()
|
|||||||
$nixpacks_php_root_dir = $this->application->environment_variables_preview->where('key', 'NIXPACKS_PHP_ROOT_DIR')->first();
|
$nixpacks_php_root_dir = $this->application->environment_variables_preview->where('key', 'NIXPACKS_PHP_ROOT_DIR')->first();
|
||||||
}
|
}
|
||||||
if (! $nixpacks_php_fallback_path) {
|
if (! $nixpacks_php_fallback_path) {
|
||||||
$nixpacks_php_fallback_path = new EnvironmentVariable();
|
$nixpacks_php_fallback_path = new EnvironmentVariable;
|
||||||
$nixpacks_php_fallback_path->key = 'NIXPACKS_PHP_FALLBACK_PATH';
|
$nixpacks_php_fallback_path->key = 'NIXPACKS_PHP_FALLBACK_PATH';
|
||||||
$nixpacks_php_fallback_path->value = '/index.php';
|
$nixpacks_php_fallback_path->value = '/index.php';
|
||||||
$nixpacks_php_fallback_path->is_build_time = false;
|
$nixpacks_php_fallback_path->is_build_time = false;
|
||||||
@ -999,7 +999,7 @@ private function laravel_finetunes()
|
|||||||
$nixpacks_php_fallback_path->save();
|
$nixpacks_php_fallback_path->save();
|
||||||
}
|
}
|
||||||
if (! $nixpacks_php_root_dir) {
|
if (! $nixpacks_php_root_dir) {
|
||||||
$nixpacks_php_root_dir = new EnvironmentVariable();
|
$nixpacks_php_root_dir = new EnvironmentVariable;
|
||||||
$nixpacks_php_root_dir->key = 'NIXPACKS_PHP_ROOT_DIR';
|
$nixpacks_php_root_dir->key = 'NIXPACKS_PHP_ROOT_DIR';
|
||||||
$nixpacks_php_root_dir->value = '/app/public';
|
$nixpacks_php_root_dir->value = '/app/public';
|
||||||
$nixpacks_php_root_dir->is_build_time = false;
|
$nixpacks_php_root_dir->is_build_time = false;
|
||||||
@ -1273,7 +1273,7 @@ private function deploy_to_additional_destinations()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// ray('Deploying to additional destination: ', $server->name);
|
// ray('Deploying to additional destination: ', $server->name);
|
||||||
$deployment_uuid = new Cuid2();
|
$deployment_uuid = new Cuid2;
|
||||||
queue_application_deployment(
|
queue_application_deployment(
|
||||||
deployment_uuid: $deployment_uuid,
|
deployment_uuid: $deployment_uuid,
|
||||||
application: $this->application,
|
application: $this->application,
|
||||||
|
@ -19,7 +19,7 @@ public function __construct(public string $email, public string $uuid) {}
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$confirmation_url = base_url().'/webhooks/waitlist/confirm?email='.$this->email.'&confirmation_code='.$this->uuid;
|
$confirmation_url = base_url().'/webhooks/waitlist/confirm?email='.$this->email.'&confirmation_code='.$this->uuid;
|
||||||
$cancel_url = base_url().'/webhooks/waitlist/cancel?email='.$this->email.'&confirmation_code='.$this->uuid;
|
$cancel_url = base_url().'/webhooks/waitlist/cancel?email='.$this->email.'&confirmation_code='.$this->uuid;
|
||||||
$mail->view('emails.waitlist-confirmation',
|
$mail->view('emails.waitlist-confirmation',
|
||||||
|
@ -21,7 +21,7 @@ public function handle()
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$session = getStripeCustomerPortalSession($this->team);
|
$session = getStripeCustomerPortalSession($this->team);
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->view('emails.subscription-invoice-failed', [
|
$mail->view('emails.subscription-invoice-failed', [
|
||||||
'stripeCustomerPortal' => $session->url,
|
'stripeCustomerPortal' => $session->url,
|
||||||
]);
|
]);
|
||||||
|
@ -23,7 +23,7 @@ public function handle(): void
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$session = getStripeCustomerPortalSession($this->team);
|
$session = getStripeCustomerPortalSession($this->team);
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Action required: You trial in Coolify Cloud ended.');
|
$mail->subject('Action required: You trial in Coolify Cloud ended.');
|
||||||
$mail->view('emails.trial-ended', [
|
$mail->view('emails.trial-ended', [
|
||||||
'stripeCustomerPortal' => $session->url,
|
'stripeCustomerPortal' => $session->url,
|
||||||
|
@ -23,7 +23,7 @@ public function handle(): void
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$session = getStripeCustomerPortalSession($this->team);
|
$session = getStripeCustomerPortalSession($this->team);
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('You trial in Coolify Cloud ends soon.');
|
$mail->subject('You trial in Coolify Cloud ends soon.');
|
||||||
$mail->view('emails.trial-ends-soon', [
|
$mail->view('emails.trial-ends-soon', [
|
||||||
'stripeCustomerPortal' => $session->url,
|
'stripeCustomerPortal' => $session->url,
|
||||||
|
@ -38,7 +38,7 @@ public function handle(EventsMaintenanceModeDisabled $event): void
|
|||||||
$class = "App\Http\Controllers\Webhook\\".ucfirst(str($endpoint)->before('::')->value());
|
$class = "App\Http\Controllers\Webhook\\".ucfirst(str($endpoint)->before('::')->value());
|
||||||
$method = str($endpoint)->after('::')->value();
|
$method = str($endpoint)->after('::')->value();
|
||||||
try {
|
try {
|
||||||
$instance = new $class();
|
$instance = new $class;
|
||||||
$instance->$method($request);
|
$instance->$method($request);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
ray($th);
|
ray($th);
|
||||||
|
@ -38,7 +38,7 @@ public function submit()
|
|||||||
$this->rateLimit(3, 30);
|
$this->rateLimit(3, 30);
|
||||||
$this->validate();
|
$this->validate();
|
||||||
$debug = "Route: {$this->path}";
|
$debug = "Route: {$this->path}";
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->view(
|
$mail->view(
|
||||||
'emails.help',
|
'emails.help',
|
||||||
[
|
[
|
||||||
|
@ -56,7 +56,7 @@ public function saveModel()
|
|||||||
|
|
||||||
public function sendTestNotification()
|
public function sendTestNotification()
|
||||||
{
|
{
|
||||||
$this->team?->notify(new Test());
|
$this->team?->notify(new Test);
|
||||||
$this->dispatch('success', 'Test notification sent.');
|
$this->dispatch('success', 'Test notification sent.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ public function saveModel()
|
|||||||
|
|
||||||
public function sendTestNotification()
|
public function sendTestNotification()
|
||||||
{
|
{
|
||||||
$this->team?->notify(new Test());
|
$this->team?->notify(new Test);
|
||||||
$this->dispatch('success', 'Test notification sent.');
|
$this->dispatch('success', 'Test notification sent.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ public function saveVariables($isPreview)
|
|||||||
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
$environment = new EnvironmentVariable();
|
$environment = new EnvironmentVariable;
|
||||||
$environment->key = $key;
|
$environment->key = $key;
|
||||||
$environment->value = $variable;
|
$environment->value = $variable;
|
||||||
if (str($environment->value)->startsWith('{{') && str($environment->value)->endsWith('}}')) {
|
if (str($environment->value)->startsWith('{{') && str($environment->value)->endsWith('}}')) {
|
||||||
@ -209,7 +209,7 @@ public function submit($data)
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$environment = new EnvironmentVariable();
|
$environment = new EnvironmentVariable;
|
||||||
$environment->key = $data['key'];
|
$environment->key = $data['key'];
|
||||||
$environment->value = $data['value'];
|
$environment->value = $data['value'];
|
||||||
$environment->is_build_time = $data['is_build_time'];
|
$environment->is_build_time = $data['is_build_time'];
|
||||||
|
@ -43,7 +43,7 @@ public function refreshTasks()
|
|||||||
public function submit($data)
|
public function submit($data)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$task = new ScheduledTask();
|
$task = new ScheduledTask;
|
||||||
$task->name = $data['name'];
|
$task->name = $data['name'];
|
||||||
$task->command = $data['command'];
|
$task->command = $data['command'];
|
||||||
$task->frequency = $data['frequency'];
|
$task->frequency = $data['frequency'];
|
||||||
|
@ -59,7 +59,7 @@ public function submit()
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->validate();
|
$this->validate();
|
||||||
$this->storage = new S3Storage();
|
$this->storage = new S3Storage;
|
||||||
$this->storage->name = $this->name;
|
$this->storage->name = $this->name;
|
||||||
$this->storage->description = $this->description ?? null;
|
$this->storage->description = $this->description ?? null;
|
||||||
$this->storage->region = $this->region;
|
$this->storage->region = $this->region;
|
||||||
|
@ -51,11 +51,11 @@ public function redeploy_all()
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->applications->each(function ($resource) {
|
$this->applications->each(function ($resource) {
|
||||||
$deploy = new DeployController();
|
$deploy = new DeployController;
|
||||||
$deploy->deploy_resource($resource);
|
$deploy->deploy_resource($resource);
|
||||||
});
|
});
|
||||||
$this->services->each(function ($resource) {
|
$this->services->each(function ($resource) {
|
||||||
$deploy = new DeployController();
|
$deploy = new DeployController;
|
||||||
$deploy->deploy_resource($resource);
|
$deploy->deploy_resource($resource);
|
||||||
});
|
});
|
||||||
$this->dispatch('success', 'Mass deployment started.');
|
$this->dispatch('success', 'Mass deployment started.');
|
||||||
|
@ -59,11 +59,11 @@ public function redeploy_all()
|
|||||||
try {
|
try {
|
||||||
$message = collect([]);
|
$message = collect([]);
|
||||||
$this->applications->each(function ($resource) use ($message) {
|
$this->applications->each(function ($resource) use ($message) {
|
||||||
$deploy = new DeployController();
|
$deploy = new DeployController;
|
||||||
$message->push($deploy->deploy_resource($resource));
|
$message->push($deploy->deploy_resource($resource));
|
||||||
});
|
});
|
||||||
$this->services->each(function ($resource) use ($message) {
|
$this->services->each(function ($resource) use ($message) {
|
||||||
$deploy = new DeployController();
|
$deploy = new DeployController;
|
||||||
$message->push($deploy->deploy_resource($resource));
|
$message->push($deploy->deploy_resource($resource));
|
||||||
});
|
});
|
||||||
$this->dispatch('success', 'Mass deployment started.');
|
$this->dispatch('success', 'Mass deployment started.');
|
||||||
|
@ -79,7 +79,7 @@ private function generate_invite_link(bool $sendEmail = false)
|
|||||||
'via' => $sendEmail ? 'email' : 'link',
|
'via' => $sendEmail ? 'email' : 'link',
|
||||||
]);
|
]);
|
||||||
if ($sendEmail) {
|
if ($sendEmail) {
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->view('emails.invitation-link', [
|
$mail->view('emails.invitation-link', [
|
||||||
'team' => currentTeam()->name,
|
'team' => currentTeam()->name,
|
||||||
'invitation_link' => $link,
|
'invitation_link' => $link,
|
||||||
|
@ -1066,7 +1066,7 @@ public function loadComposeFile($isInit = false)
|
|||||||
if ($isInit && $this->docker_compose_raw) {
|
if ($isInit && $this->docker_compose_raw) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$uuid = new Cuid2();
|
$uuid = new Cuid2;
|
||||||
['commands' => $cloneCommand] = $this->generateGitImportCommands(deployment_uuid: $uuid, only_checkout: true, exec_in_docker: false, custom_base_dir: '.');
|
['commands' => $cloneCommand] = $this->generateGitImportCommands(deployment_uuid: $uuid, only_checkout: true, exec_in_docker: false, custom_base_dir: '.');
|
||||||
$workdir = rtrim($this->base_directory, '/');
|
$workdir = rtrim($this->base_directory, '/');
|
||||||
$composeFile = $this->docker_compose_location;
|
$composeFile = $this->docker_compose_location;
|
||||||
|
@ -52,7 +52,7 @@ protected static function booted()
|
|||||||
{
|
{
|
||||||
static::creating(function (Model $model) {
|
static::creating(function (Model $model) {
|
||||||
if (! $model->uuid) {
|
if (! $model->uuid) {
|
||||||
$model->uuid = (string) new Cuid2();
|
$model->uuid = (string) new Cuid2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
static::created(function (EnvironmentVariable $environment_variable) {
|
static::created(function (EnvironmentVariable $environment_variable) {
|
||||||
|
@ -50,7 +50,7 @@ public function testConnection(bool $shouldSave = false)
|
|||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$this->is_usable = false;
|
$this->is_usable = false;
|
||||||
if ($this->unusable_email_sent === false && is_transactional_emails_active()) {
|
if ($this->unusable_email_sent === false && is_transactional_emails_active()) {
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Coolify: S3 Storage Connection Error');
|
$mail->subject('Coolify: S3 Storage Connection Error');
|
||||||
$mail->view('emails.s3-connection-error', ['name' => $this->name, 'reason' => $e->getMessage(), 'url' => route('storage.show', ['storage_uuid' => $this->uuid])]);
|
$mail->view('emails.s3-connection-error', ['name' => $this->name, 'reason' => $e->getMessage(), 'url' => route('storage.show', ['storage_uuid' => $this->uuid])]);
|
||||||
$users = collect([]);
|
$users = collect([]);
|
||||||
|
@ -120,7 +120,7 @@ public function getRecepients($notification)
|
|||||||
|
|
||||||
public function sendVerificationEmail()
|
public function sendVerificationEmail()
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$url = Url::temporarySignedRoute(
|
$url = Url::temporarySignedRoute(
|
||||||
'verify.verify',
|
'verify.verify',
|
||||||
Carbon::now()->addMinutes(Config::get('auth.verification.expire', 60)),
|
Carbon::now()->addMinutes(Config::get('auth.verification.expire', 60)),
|
||||||
|
@ -53,7 +53,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
||||||
$fqdn = $this->fqdn;
|
$fqdn = $this->fqdn;
|
||||||
if ($pull_request_id === 0) {
|
if ($pull_request_id === 0) {
|
||||||
|
@ -59,7 +59,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
||||||
$fqdn = $this->fqdn;
|
$fqdn = $this->fqdn;
|
||||||
if ($pull_request_id === 0) {
|
if ($pull_request_id === 0) {
|
||||||
|
@ -43,7 +43,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$fqdn = $this->fqdn;
|
$fqdn = $this->fqdn;
|
||||||
$mail->subject("Coolify: {$this->resource_name} has been stopped");
|
$mail->subject("Coolify: {$this->resource_name} has been stopped");
|
||||||
$mail->view('emails.application-status-changes', [
|
$mail->view('emails.application-status-changes', [
|
||||||
|
@ -23,7 +23,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: A resource ({$this->name}) has been restarted automatically on {$this->server->name}");
|
$mail->subject("Coolify: A resource ({$this->name}) has been restarted automatically on {$this->server->name}");
|
||||||
$mail->view('emails.container-restarted', [
|
$mail->view('emails.container-restarted', [
|
||||||
'containerName' => $this->name,
|
'containerName' => $this->name,
|
||||||
|
@ -23,7 +23,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: A resource has been stopped unexpectedly on {$this->server->name}");
|
$mail->subject("Coolify: A resource has been stopped unexpectedly on {$this->server->name}");
|
||||||
$mail->view('emails.container-stopped', [
|
$mail->view('emails.container-stopped', [
|
||||||
'containerName' => $this->name,
|
'containerName' => $this->name,
|
||||||
|
@ -33,7 +33,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: [ACTION REQUIRED] Backup FAILED for {$this->database->name}");
|
$mail->subject("Coolify: [ACTION REQUIRED] Backup FAILED for {$this->database->name}");
|
||||||
$mail->view('emails.backup-failed', [
|
$mail->view('emails.backup-failed', [
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
|
@ -33,7 +33,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: Backup successfully done for {$this->database->name}");
|
$mail->subject("Coolify: Backup successfully done for {$this->database->name}");
|
||||||
$mail->view('emails.backup-success', [
|
$mail->view('emails.backup-success', [
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
|
@ -25,7 +25,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Coolify: Daily backup statuses');
|
$mail->subject('Coolify: Daily backup statuses');
|
||||||
$mail->view('emails.daily-backup', [
|
$mail->view('emails.daily-backup', [
|
||||||
'databases' => $this->databases,
|
'databases' => $this->databases,
|
||||||
|
@ -35,7 +35,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: [ACTION REQUIRED] Scheduled task ({$this->task->name}) failed.");
|
$mail->subject("Coolify: [ACTION REQUIRED] Scheduled task ({$this->task->name}) failed.");
|
||||||
$mail->view('emails.scheduled-task-failed', [
|
$mail->view('emails.scheduled-task-failed', [
|
||||||
'task' => $this->task,
|
'task' => $this->task,
|
||||||
|
@ -41,7 +41,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: Server ({$this->server->name}) disabled because it is not paid!");
|
$mail->subject("Coolify: Server ({$this->server->name}) disabled because it is not paid!");
|
||||||
$mail->view('emails.server-force-disabled', [
|
$mail->view('emails.server-force-disabled', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
|
@ -41,7 +41,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: Server ({$this->server->name}) enabled again!");
|
$mail->subject("Coolify: Server ({$this->server->name}) enabled again!");
|
||||||
$mail->view('emails.server-force-enabled', [
|
$mail->view('emails.server-force-enabled', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
|
@ -41,7 +41,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: Server ({$this->server->name}) high disk usage detected!");
|
$mail->subject("Coolify: Server ({$this->server->name}) high disk usage detected!");
|
||||||
$mail->view('emails.high-disk-usage', [
|
$mail->view('emails.high-disk-usage', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
|
@ -50,7 +50,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: Server ({$this->server->name}) revived.");
|
$mail->subject("Coolify: Server ({$this->server->name}) revived.");
|
||||||
$mail->view('emails.server-revived', [
|
$mail->view('emails.server-revived', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
|
@ -41,7 +41,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject("Coolify: Your server ({$this->server->name}) is unreachable.");
|
$mail->subject("Coolify: Your server ({$this->server->name}) is unreachable.");
|
||||||
$mail->view('emails.server-lost-connection', [
|
$mail->view('emails.server-lost-connection', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
|
@ -22,7 +22,7 @@ public function via(object $notifiable): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Coolify: Test Email');
|
$mail->subject('Coolify: Test Email');
|
||||||
$mail->view('emails.test');
|
$mail->view('emails.test');
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ public function toMail(): MailMessage
|
|||||||
$invitation = TeamInvitation::whereEmail($this->user->email)->first();
|
$invitation = TeamInvitation::whereEmail($this->user->email)->first();
|
||||||
$invitation_team = Team::find($invitation->team->id);
|
$invitation_team = Team::find($invitation->team->id);
|
||||||
|
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Coolify: Invitation for '.$invitation_team->name);
|
$mail->subject('Coolify: Invitation for '.$invitation_team->name);
|
||||||
$mail->view('emails.invitation-link', [
|
$mail->view('emails.invitation-link', [
|
||||||
'team' => $invitation_team->name,
|
'team' => $invitation_team->name,
|
||||||
|
@ -53,7 +53,7 @@ public function toMail($notifiable)
|
|||||||
|
|
||||||
protected function buildMailMessage($url)
|
protected function buildMailMessage($url)
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Coolify: Reset Password');
|
$mail->subject('Coolify: Reset Password');
|
||||||
$mail->view('emails.reset-password', ['url' => $url, 'count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')]);
|
$mail->view('emails.reset-password', ['url' => $url, 'count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')]);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ public function via(): array
|
|||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage;
|
||||||
$mail->subject('Coolify: Test Email');
|
$mail->subject('Coolify: Test Email');
|
||||||
$mail->view('emails.test');
|
$mail->view('emails.test');
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ function create_standalone_postgresql($environmentId, $destinationUuid, ?array $
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandalonePostgresql();
|
$database = new StandalonePostgresql;
|
||||||
$database->name = generate_database_name('postgresql');
|
$database->name = generate_database_name('postgresql');
|
||||||
$database->postgres_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->postgres_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->environment_id = $environmentId;
|
$database->environment_id = $environmentId;
|
||||||
@ -45,7 +45,7 @@ function create_standalone_redis($environment_id, $destination_uuid, ?array $oth
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneRedis();
|
$database = new StandaloneRedis;
|
||||||
$database->name = generate_database_name('redis');
|
$database->name = generate_database_name('redis');
|
||||||
$database->redis_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->redis_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->environment_id = $environment_id;
|
$database->environment_id = $environment_id;
|
||||||
@ -65,7 +65,7 @@ function create_standalone_mongodb($environment_id, $destination_uuid, ?array $o
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneMongodb();
|
$database = new StandaloneMongodb;
|
||||||
$database->name = generate_database_name('mongodb');
|
$database->name = generate_database_name('mongodb');
|
||||||
$database->mongo_initdb_root_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->mongo_initdb_root_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->environment_id = $environment_id;
|
$database->environment_id = $environment_id;
|
||||||
@ -84,7 +84,7 @@ function create_standalone_mysql($environment_id, $destination_uuid, ?array $oth
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneMysql();
|
$database = new StandaloneMysql;
|
||||||
$database->name = generate_database_name('mysql');
|
$database->name = generate_database_name('mysql');
|
||||||
$database->mysql_root_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->mysql_root_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->mysql_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->mysql_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
@ -104,7 +104,7 @@ function create_standalone_mariadb($environment_id, $destination_uuid, ?array $o
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneMariadb();
|
$database = new StandaloneMariadb;
|
||||||
$database->name = generate_database_name('mariadb');
|
$database->name = generate_database_name('mariadb');
|
||||||
$database->mariadb_root_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->mariadb_root_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->mariadb_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->mariadb_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
@ -125,7 +125,7 @@ function create_standalone_keydb($environment_id, $destination_uuid, ?array $oth
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneKeydb();
|
$database = new StandaloneKeydb;
|
||||||
$database->name = generate_database_name('keydb');
|
$database->name = generate_database_name('keydb');
|
||||||
$database->keydb_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->keydb_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->environment_id = $environment_id;
|
$database->environment_id = $environment_id;
|
||||||
@ -145,7 +145,7 @@ function create_standalone_dragonfly($environment_id, $destination_uuid, ?array
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneDragonfly();
|
$database = new StandaloneDragonfly;
|
||||||
$database->name = generate_database_name('dragonfly');
|
$database->name = generate_database_name('dragonfly');
|
||||||
$database->dragonfly_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->dragonfly_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->environment_id = $environment_id;
|
$database->environment_id = $environment_id;
|
||||||
@ -164,7 +164,7 @@ function create_standalone_clickhouse($environment_id, $destination_uuid, ?array
|
|||||||
if (! $destination) {
|
if (! $destination) {
|
||||||
throw new Exception('Destination not found');
|
throw new Exception('Destination not found');
|
||||||
}
|
}
|
||||||
$database = new StandaloneClickhouse();
|
$database = new StandaloneClickhouse;
|
||||||
$database->name = generate_database_name('clickhouse');
|
$database->name = generate_database_name('clickhouse');
|
||||||
$database->clickhouse_admin_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
$database->clickhouse_admin_password = \Illuminate\Support\Str::password(length: 64, symbols: false);
|
||||||
$database->environment_id = $environment_id;
|
$database->environment_id = $environment_id;
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
function generate_github_installation_token(GithubApp $source)
|
function generate_github_installation_token(GithubApp $source)
|
||||||
{
|
{
|
||||||
$signingKey = InMemory::plainText($source->privateKey->private_key);
|
$signingKey = InMemory::plainText($source->privateKey->private_key);
|
||||||
$algorithm = new Sha256();
|
$algorithm = new Sha256;
|
||||||
$tokenBuilder = (new Builder(new JoseEncoder(), ChainedFormatter::default()));
|
$tokenBuilder = (new Builder(new JoseEncoder, ChainedFormatter::default()));
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable;
|
||||||
$now = $now->setTime($now->format('H'), $now->format('i'));
|
$now = $now->setTime($now->format('H'), $now->format('i'));
|
||||||
$issuedToken = $tokenBuilder
|
$issuedToken = $tokenBuilder
|
||||||
->issuedBy($source->app_id)
|
->issuedBy($source->app_id)
|
||||||
@ -38,9 +38,9 @@ function generate_github_installation_token(GithubApp $source)
|
|||||||
function generate_github_jwt_token(GithubApp $source)
|
function generate_github_jwt_token(GithubApp $source)
|
||||||
{
|
{
|
||||||
$signingKey = InMemory::plainText($source->privateKey->private_key);
|
$signingKey = InMemory::plainText($source->privateKey->private_key);
|
||||||
$algorithm = new Sha256();
|
$algorithm = new Sha256;
|
||||||
$tokenBuilder = (new Builder(new JoseEncoder(), ChainedFormatter::default()));
|
$tokenBuilder = (new Builder(new JoseEncoder, ChainedFormatter::default()));
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable;
|
||||||
$now = $now->setTime($now->format('H'), $now->format('i'));
|
$now = $now->setTime($now->format('H'), $now->format('i'));
|
||||||
$issuedToken = $tokenBuilder
|
$issuedToken = $tokenBuilder
|
||||||
->issuedBy($source->app_id)
|
->issuedBy($source->app_id)
|
||||||
|
@ -196,7 +196,7 @@ function generate_random_name(?string $cuid = null): string
|
|||||||
{
|
{
|
||||||
$generator = new \Nubs\RandomNameGenerator\All(
|
$generator = new \Nubs\RandomNameGenerator\All(
|
||||||
[
|
[
|
||||||
new \Nubs\RandomNameGenerator\Alliteration(),
|
new \Nubs\RandomNameGenerator\Alliteration,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (is_null($cuid)) {
|
if (is_null($cuid)) {
|
||||||
@ -2188,9 +2188,9 @@ function generateEnvValue(string $command, ?Service $service = null)
|
|||||||
$signingKey = $signingKey->value;
|
$signingKey = $signingKey->value;
|
||||||
}
|
}
|
||||||
$key = InMemory::plainText($signingKey);
|
$key = InMemory::plainText($signingKey);
|
||||||
$algorithm = new Sha256();
|
$algorithm = new Sha256;
|
||||||
$tokenBuilder = (new Builder(new JoseEncoder(), ChainedFormatter::default()));
|
$tokenBuilder = (new Builder(new JoseEncoder, ChainedFormatter::default()));
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable;
|
||||||
$now = $now->setTime($now->format('H'), $now->format('i'));
|
$now = $now->setTime($now->format('H'), $now->format('i'));
|
||||||
$token = $tokenBuilder
|
$token = $tokenBuilder
|
||||||
->issuedBy('supabase')
|
->issuedBy('supabase')
|
||||||
@ -2208,9 +2208,9 @@ function generateEnvValue(string $command, ?Service $service = null)
|
|||||||
$signingKey = $signingKey->value;
|
$signingKey = $signingKey->value;
|
||||||
}
|
}
|
||||||
$key = InMemory::plainText($signingKey);
|
$key = InMemory::plainText($signingKey);
|
||||||
$algorithm = new Sha256();
|
$algorithm = new Sha256;
|
||||||
$tokenBuilder = (new Builder(new JoseEncoder(), ChainedFormatter::default()));
|
$tokenBuilder = (new Builder(new JoseEncoder, ChainedFormatter::default()));
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable;
|
||||||
$now = $now->setTime($now->format('H'), $now->format('i'));
|
$now = $now->setTime($now->format('H'), $now->format('i'));
|
||||||
$token = $tokenBuilder
|
$token = $tokenBuilder
|
||||||
->issuedBy('supabase')
|
->issuedBy('supabase')
|
||||||
|
@ -38,7 +38,7 @@ public function up(): void
|
|||||||
|
|
||||||
EnvironmentVariable::all()->each(function (EnvironmentVariable $environmentVariable) {
|
EnvironmentVariable::all()->each(function (EnvironmentVariable $environmentVariable) {
|
||||||
$environmentVariable->update([
|
$environmentVariable->update([
|
||||||
'uuid' => (string) new Cuid2(),
|
'uuid' => (string) new Cuid2,
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
Schema::table('environment_variables', function (Blueprint $table) {
|
Schema::table('environment_variables', function (Blueprint $table) {
|
||||||
|
@ -178,7 +178,7 @@ public function run(): void
|
|||||||
|
|
||||||
get_public_ips();
|
get_public_ips();
|
||||||
|
|
||||||
$oauth_settings_seeder = new OauthSettingSeeder();
|
$oauth_settings_seeder = new OauthSettingSeeder;
|
||||||
$oauth_settings_seeder->run();
|
$oauth_settings_seeder->run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user