mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
13c729a625
commit
12cc46eee8
3 changed files with 43 additions and 0 deletions
|
@ -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
|
||||
|
||||
}
|
||||
}
|
0
web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh
Normal file
0
web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh
Normal 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
|
Loading…
Reference in a new issue