From 12cc46eee8017da036f9d1ab8f7daf58bbbf28af Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 5 Aug 2024 15:59:57 +0300 Subject: [PATCH] update --- .../LetsencryptHttpAuthenticatorHook.php | 40 +++++++++++++++++++ .../shell/hooks/post/http-cleanup.sh | 0 .../shell/hooks/pre/http-authenticator.sh | 3 ++ 3 files changed, 43 insertions(+) create mode 100644 web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php create mode 100644 web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh create mode 100644 web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh diff --git a/web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php b/web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php new file mode 100644 index 0000000..272be37 --- /dev/null +++ b/web/Modules/LetsEncrypt/Console/Commands/LetsencryptHttpAuthenticatorHook.php @@ -0,0 +1,40 @@ +info('Letsencrypt Authenticator Hook'); + + $certbotToken = $this->option('certbot-token'); + $certbotValidation = $this->option('certbot-validation'); + $certbotDomain = $this->option('certbot-domain'); + + + // .well-known/acme-challenge + + } +} diff --git a/web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh b/web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh new file mode 100644 index 0000000..e69de29 diff --git a/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh b/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh new file mode 100644 index 0000000..559aba2 --- /dev/null +++ b/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh @@ -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