|
@@ -31,6 +31,7 @@ class HostingAccountIsCreatedListener
|
|
$acmeConfigYaml = view('letsencrypt::actions.acme-config-yaml', [
|
|
$acmeConfigYaml = view('letsencrypt::actions.acme-config-yaml', [
|
|
'domain' => $event->model->domain,
|
|
'domain' => $event->model->domain,
|
|
'domainRoot' => $event->model->domain_root,
|
|
'domainRoot' => $event->model->domain_root,
|
|
|
|
+ 'domainPublic' => $event->model->domain_public,
|
|
'email' => $generalSettings['master_email'],
|
|
'email' => $generalSettings['master_email'],
|
|
'country' => $generalSettings['master_country'],
|
|
'country' => $generalSettings['master_country'],
|
|
'locality' => $generalSettings['master_locality'],
|
|
'locality' => $generalSettings['master_locality'],
|
|
@@ -45,9 +46,8 @@ class HostingAccountIsCreatedListener
|
|
$phyrePHP = ApiClient::getPhyrePHP();
|
|
$phyrePHP = ApiClient::getPhyrePHP();
|
|
$phyrePHP = 'php';
|
|
$phyrePHP = 'php';
|
|
|
|
|
|
-// $command = $phyrePHP . ' ' . $amePHPPharFile . ' run ' . $event->model->domain_root . '/acme-config.yaml';
|
|
|
|
-// $execPhar = ShellApi::exec($command);
|
|
|
|
-
|
|
|
|
|
|
+ $command = $phyrePHP . ' ' . $amePHPPharFile . ' run ' . $event->model->domain_root . '/acme-config.yaml';
|
|
|
|
+ $execPhar = ShellApi::exec($command);
|
|
|
|
|
|
$validateCertificates = [];
|
|
$validateCertificates = [];
|
|
$sslCertificateFilePath = '/root/.acmephp/master/certs/'.$event->model->domain.'/public/cert.pem';
|
|
$sslCertificateFilePath = '/root/.acmephp/master/certs/'.$event->model->domain.'/public/cert.pem';
|