This commit is contained in:
shimon 2023-07-18 10:54:11 +03:00
parent d28a235b4d
commit 1fd7f0c5d7
2 changed files with 6 additions and 5 deletions

4
.env
View file

@ -44,8 +44,8 @@ _APP_SMTP_PASSWORD=
_APP_HAMSTER_INTERVAL=86400
_APP_HAMSTER_TIME=21:00
_APP_MIXPANEL_TOKEN=
_APP_SMS_PROVIDER=sms://username:password@mock
_APP_SMS_FROM=+123456789
_APP_SMS_PROVIDER=sms://5fccf626:sFYCY5Q2Z7zTbsPK@vonage
_APP_SMS_FROM=+972504368300
_APP_STORAGE_LIMIT=30000000
_APP_STORAGE_PREVIEW_LIMIT=20000000
_APP_FUNCTIONS_SIZE_LIMIT=30000000

View file

@ -21,14 +21,15 @@ class SSL extends Action
$this
->desc('Validate server certificates')
->param('domain', App::getEnv('_APP_DOMAIN', ''), new Hostname(), 'Domain to generate certificate for. If empty, main domain will be used.', true)
->callback(fn ($domain) => $this->action($domain));
->inject('queueForCertificates')
->callback(fn (string $domain, Certificate $queueForCertificates) => $this->action($domain, $queueForCertificates));
}
public function action(string $domain): void
public function action(string $domain, Certificate $queueForCertificates): void
{
Console::success('Scheduling a job to issue a TLS certificate for domain: ' . $domain);
(new Certificate())
$queueForCertificates
->setDomain(new Document([
'domain' => $domain
]))