remove traces

This commit is contained in:
Dennis
2025-08-12 11:23:34 +02:00
parent 065773fb6f
commit 33ccdd1b2d
5 changed files with 5 additions and 15 deletions

View File

@@ -99,7 +99,6 @@ Main entities: Users, Packages, Servers, Sites, Databases, Certificates, Cronjob
### Important Environment Variables
```
PLOI_TOKEN= # Ploi API token
PLOI_CORE_TOKEN= # Ploi Core API token
APP_DEMO=false # Demo mode toggle
STRIPE_KEY= # Stripe public key
STRIPE_SECRET= # Stripe secret key

View File

@@ -142,12 +142,11 @@ class Install extends Command
]);
}
protected function getCompany($ploiCoreKey, $token)
protected function getCompany($token)
{
$response = Http::withHeaders([
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'X-Ploi-Core-Key' => $ploiCoreKey
'Content-Type' => 'application/json'
])
->withToken($token)
->get((new Ploi)->url . 'ping');
@@ -279,11 +278,7 @@ class Install extends Command
$ploiApiToken = $this->ask('Enter the Ploi API token', env('PLOI_TOKEN'));
} while (empty($ploiApiToken));
do {
$ploiCoreKey = $this->ask('Enter the Ploi Core key', env('PLOI_CORE_TOKEN'));
} while (empty($ploiCoreKey));
$this->company = $this->getCompany($ploiCoreKey, $ploiApiToken);
$this->company = $this->getCompany($ploiApiToken);
if (!$this->company) {
$this->error('Could not authenticate with ploi.io, please retry by running this command again.');
@@ -304,7 +299,6 @@ class Install extends Command
}
$this->writeToEnvironmentFile('PLOI_TOKEN', $ploiApiToken);
$this->writeToEnvironmentFile('PLOI_CORE_TOKEN', $ploiCoreKey);
$name = $this->ask('What is the name of your company? (Press enter to keep the name here)', $this->company['name']);
$this->writeToEnvironmentFile('APP_NAME', $name);

View File

@@ -38,7 +38,6 @@ class InstallationComplete
protected function isInstallationComplete()
{
return config('app.key') &&
config('services.ploi.token') &&
config('services.ploi.core-token');
config('services.ploi.token');
}
}

View File

@@ -23,8 +23,7 @@ class Ping implements ShouldQueue
$response = Http::withHeaders([
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'X-Ploi-Core-Key' => config('services.ploi.core-token')
'Content-Type' => 'application/json'
])
->withToken(config('services.ploi.token'))
->post((new Ploi)->url . 'ping', [

View File

@@ -20,7 +20,6 @@
<server name="SESSION_DRIVER" value="array"/>
<server name="TELESCOPE_ENABLED" value="false"/>
<server name="PLOI_TOKEN" value="TEST"/>
<server name="PLOI_CORE_TOKEN" value="TEST"/>
</php>
<source>
<include>