fix default key names

This commit is contained in:
Saeed Vaziry 2023-09-17 11:08:47 +02:00
parent 9030427f78
commit 84192b7cb7
3 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@ public function __construct()
public function handle(Broadcast $event): void public function handle(Broadcast $event): void
{ {
Cache::set('broadcast', [ Cache::put('broadcast', [
'type' => $event->type, 'type' => $event->type,
'data' => $event->data, 'data' => $event->data,
], now()->addMinutes(5)); ], now()->addMinutes(5));

View File

@ -2,6 +2,7 @@
namespace App\ServerTypes; namespace App\ServerTypes;
use App\Enums\ServerStatus;
use App\Events\Broadcast; use App\Events\Broadcast;
use App\Jobs\Installation\Initialize; use App\Jobs\Installation\Initialize;
use App\Jobs\Installation\InstallCertbot; use App\Jobs\Installation\InstallCertbot;
@ -79,7 +80,7 @@ public function install(): void
$jobs[] = function () { $jobs[] = function () {
$this->server->update([ $this->server->update([
'status' => 'ready', 'status' => ServerStatus::READY,
'progress' => 100, 'progress' => 100,
]); ]);
event( event(

View File

@ -36,8 +36,8 @@
* SSH * SSH
*/ */
'ssh_user' => env('SSH_USER', 'vito'), 'ssh_user' => env('SSH_USER', 'vito'),
'ssh_public_key_name' => env('SSH_PUBLIC_KEY_NAME'), 'ssh_public_key_name' => env('SSH_PUBLIC_KEY_NAME', 'ssh-public.key'),
'ssh_private_key_name' => env('SSH_PRIVATE_KEY_NAME'), 'ssh_private_key_name' => env('SSH_PRIVATE_KEY_NAME', 'ssh-private.pem'),
'logs_disk' => env('SERVER_LOGS_DISK', 'server-logs-local'), 'logs_disk' => env('SERVER_LOGS_DISK', 'server-logs-local'),
'key_pairs_disk' => env('KEY_PAIRS_DISK', 'key-pairs-local'), 'key_pairs_disk' => env('KEY_PAIRS_DISK', 'key-pairs-local'),