-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ask for email when generating LetsEncrypt SSLs (#452)
- Loading branch information
1 parent
270928a
commit 53e20cb
Showing
7 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
database/migrations/2025_01_29_192733_add_email_to_ssls_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::table('ssls', function (Blueprint $table) { | ||
$table->string('email')->nullable(); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table('ssls', function (Blueprint $table) { | ||
$table->dropColumn('email'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ public function test_letsencrypt_ssl() | |
]) | ||
->callAction('create', [ | ||
'type' => SslType::LETSENCRYPT, | ||
'email' => '[email protected]', | ||
]) | ||
->assertSuccessful(); | ||
|
||
|
@@ -52,6 +53,7 @@ public function test_letsencrypt_ssl() | |
'type' => SslType::LETSENCRYPT, | ||
'status' => SslStatus::CREATED, | ||
'domains' => json_encode([$this->site->domain]), | ||
'email' => '[email protected]', | ||
]); | ||
} | ||
|
||
|
@@ -67,6 +69,7 @@ public function test_letsencrypt_ssl_with_aliases() | |
]) | ||
->callAction('create', [ | ||
'type' => SslType::LETSENCRYPT, | ||
'email' => '[email protected]', | ||
'aliases' => true, | ||
]) | ||
->assertSuccessful(); | ||
|
@@ -76,6 +79,7 @@ public function test_letsencrypt_ssl_with_aliases() | |
'type' => SslType::LETSENCRYPT, | ||
'status' => SslStatus::CREATED, | ||
'domains' => json_encode(array_merge([$this->site->domain], $this->site->aliases)), | ||
'email' => '[email protected]', | ||
]); | ||
} | ||
|
||
|