This commit is contained in:
Bozhidar 2024-08-05 15:59:57 +03:00
parent 13c729a625
commit 12cc46eee8
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,40 @@
<?php
namespace Modules\LetsEncrypt\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
class LetsencryptAuthenticatorHook extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'phyre:letsencrypt-http-authenticator-hook {--certbot-domain=} {--certbot-token=} {--certbot-validation=}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*/
public function handle()
{
$this->info('Letsencrypt Authenticator Hook');
$certbotToken = $this->option('certbot-token');
$certbotValidation = $this->option('certbot-validation');
$certbotDomain = $this->option('certbot-domain');
// .well-known/acme-challenge
}
}

View file

@ -0,0 +1,3 @@
#!/bin/bash
phyre-php /usr/local/phyre/web/artisan phyre:letsencrypt-http-authenticator-hook --certbot-domain $CERTBOT_DOMAIN --certbot-token $CERTBOT_TOKEN --certbot-validation $CERTBOT_VALIDATION