Skip to content

Commit 83f3d86

Browse files
authored
Merge pull request #4193 from coollabsio/next
v4.0.0-beta.364
2 parents d19b0ea + 15c00bc commit 83f3d86

File tree

16 files changed

+62
-64
lines changed

16 files changed

+62
-64
lines changed

app/Livewire/Project/Application/Preview/Form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Livewire\Project\Application\Preview;
44

55
use App\Models\Application;
6+
use Livewire\Attributes\Validate;
67
use Livewire\Component;
78
use Spatie\Url\Url;
89

app/Livewire/SettingsBackup.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ public function addCoolifyDatabase()
9999
$this->database->refresh();
100100
$this->backup->refresh();
101101
$this->s3s = S3Storage::whereTeamId(0)->get();
102+
103+
$this->uuid = $this->database->uuid;
104+
$this->name = $this->database->name;
105+
$this->description = $this->database->description;
106+
$this->postgres_user = $this->database->postgres_user;
107+
$this->postgres_password = $this->database->postgres_password;
108+
$this->executions = $this->backup->executions;
109+
102110
} catch (\Exception $e) {
103111
return handleError($e, $this);
104112
}

app/Livewire/SettingsEmail.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public function syncData(bool $toModel = false)
6363
$this->settings->smtp_username = $this->smtpUsername;
6464
$this->settings->smtp_password = $this->smtpPassword;
6565
$this->settings->smtp_timeout = $this->smtpTimeout;
66+
$this->settings->smtp_from_address = $this->smtpFromAddress;
67+
$this->settings->smtp_from_name = $this->smtpFromName;
6668

6769
$this->settings->resend_enabled = $this->resendEnabled;
6870
$this->settings->resend_api_key = $this->resendApiKey;

app/Livewire/Source/Github/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Create extends Component
2323

2424
public function mount()
2525
{
26-
$this->name = substr(generate_random_name(), 0, 34); // GitHub Apps names can only be 34 characters long
26+
$this->name = substr(generate_random_name(), 0, 30);
2727
}
2828

2929
public function createGitHubApp()

bootstrap/helpers/docker.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,11 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
359359
$https_label = "https-{$loop}-{$uuid}-{$service_name}";
360360
}
361361
if (str($image)->contains('ghost')) {
362-
$labels->push("traefik.http.middlewares.redir-ghost.redirectregex.regex=^{$path}/(.*)");
363-
$labels->push('traefik.http.middlewares.redir-ghost.redirectregex.replacement=/$1');
362+
$labels->push("traefik.http.middlewares.redir-ghost-{$uuid}.redirectregex.regex=^{$path}/(.*)");
363+
$labels->push("traefik.http.middlewares.redir-ghost-{$uuid}.redirectregex.replacement=/$1");
364+
$labels->push("caddy_{$loop}.handle_path.{$loop}_redir-ghost-{$uuid}.handler=rewrite");
365+
$labels->push("caddy_{$loop}.handle_path.{$loop}_redir-ghost-{$uuid}.rewrite.regexp=^{$path}/(.*)");
366+
$labels->push("caddy_{$loop}.handle_path.{$loop}_redir-ghost-{$uuid}.rewrite.replacement=/$1");
364367
}
365368

366369
$to_www_name = "{$loop}-{$uuid}-to-www";

config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// The release version of your application
99
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
10-
'release' => '4.0.0-beta.363',
10+
'release' => '4.0.0-beta.364',
1111

1212
// When left empty or `null` the Laravel environment will be used
1313
'environment' => config('app.env'),

config/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
return '4.0.0-beta.363';
3+
return '4.0.0-beta.364';

resources/views/livewire/project/application/general.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</div>
7171
<div class="flex items-end gap-2">
7272
<x-forms.select label="Direction" id="application.redirect" required
73-
helper="You need to add both the www and non-www A DNS records pointing to your server.">
73+
helper="You must need to add www and non-www as an A DNS record. Make sure the www domain is added under Domains.">
7474
<option value="both">Allow www & non-www.</option>
7575
<option value="www">Redirect to www.</option>
7676
<option value="non-www">Redirect to non-www.</option>

resources/views/livewire/project/new/github-private-repository.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<div class="flex items-end gap-2">
33
<h1>Create a new Application</h1>
4-
<x-modal-input buttonTitle="+ Add GitHub App" title="New GitHub App">
4+
<x-modal-input buttonTitle="+ Add GitHub App" title="New GitHub App" closeOutside="false">
55
<livewire:source.github.create />
66
</x-modal-input>
77
@if ($repositories->count() > 0)

resources/views/livewire/project/shared/scheduled-task/all.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div>
22
<div class="flex gap-2">
33
<h2>Scheduled Tasks</h2>
4-
<x-modal-input buttonTitle="+ Add" title="New Scheduled Task" :closeOutside=false>
4+
<x-modal-input buttonTitle="+ Add" title="New Scheduled Task" :closeOutside="false">
55
@if ($resource->type() == 'application')
6-
<livewire:project.shared.scheduled-task.add :type="$resource->type()" :containerNames="$containerNames"/>
6+
<livewire:project.shared.scheduled-task.add :type="$resource->type()" :containerNames="$containerNames" />
77
@elseif ($resource->type() == 'service')
8-
<livewire:project.shared.scheduled-task.add :type="$resource->type()" :containerNames="$containerNames"/>
8+
<livewire:project.shared.scheduled-task.add :type="$resource->type()" :containerNames="$containerNames" />
99
@endif
1010
</x-modal-input>
1111
</div>

0 commit comments

Comments
 (0)