An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Feat: new ssh key file name on disk
peaklabs-devb09017ea4672
diff --git a/app/Models/PrivateKey.php b/app/Models/PrivateKey.phpindex a56e67ff60..155ac2bdcb 100644--- a/app/Models/PrivateKey.php+++ b/app/Models/PrivateKey.php@@ -31,7 +31,6 @@ class PrivateKey extends BaseModel'name','description','private_key',- 'fingerprint','is_git_related','team_id',];@@ -50,8 +49,6 @@ class PrivateKey extends BaseModel'private_key' => ['The private key is invalid.'],]);}-- $key->fingerprint = self::generateFingerprint($key->private_key);});static::deleted(function ($key) {@@ -86,12 +83,6 @@ class PrivateKey extends BaseModel}}- public static function generateFingerprint($privateKey)- {- $key = PublicKeyLoader::load($privateKey);- return $key->getPublicKey()->getFingerprint('sha256');- }-public static function createAndStore(array $data){$privateKey = new self($data);@@ -143,20 +134,20 @@ class PrivateKey extends BaseModelpublic function storeInFileSystem(){- $filename = "id_rsa@{$this->uuid}";+ $filename = "ssh@{$this->uuid}";Storage::disk('ssh-keys')->put($filename, $this->private_key);return "/var/www/html/storage/app/ssh/keys/{$filename}";}public static function deleteFromStorage(self $privateKey){- $filename = "id_rsa@{$privateKey->uuid}";+ $filename = "ssh@{$privateKey->uuid}";Storage::disk('ssh-keys')->delete($filename);}public function getKeyLocation(){- return "/var/www/html/storage/app/ssh/keys/id_rsa@{$this->uuid}";+ return "/var/www/html/storage/app/ssh/keys/ssh@{$this->uuid}";}public function updatePrivateKey(array $data)