mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update api.php
This commit is contained in:
parent
f83517c840
commit
4cabbd2de2
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use App\ApiClient;
|
||||
use App\Jobs\ApacheBuild;
|
||||
use App\Models\DomainSslCertificate;
|
||||
use App\Settings;
|
||||
use Illuminate\Http\Request;
|
||||
|
@ -99,7 +100,9 @@ Route::post('letsencrypt/secure', function () {
|
|||
$websiteSslCertificate->provider = 'letsencrypt';
|
||||
$websiteSslCertificate->save();
|
||||
|
||||
$findDomain->configureVirtualHost();
|
||||
$findDomain->configureVirtualHost(true);
|
||||
|
||||
ApacheBuild::dispatchSync();
|
||||
|
||||
return [
|
||||
'success' => 'Domain secured successfully'
|
||||
|
|
Loading…
Reference in a new issue