diff --git a/config.template.ini b/config.template.ini index 639678d..e001cc2 100644 --- a/config.template.ini +++ b/config.template.ini @@ -46,8 +46,10 @@ tor_user = "tor" tor_reload_cmd = "/usr/bin/systemctl reload tor" onion_internal_host = "[::1]:9080" -sudo_path = "/usr/bin/sudo" certbot_path = "/usr/bin/certbot" +certbot_config_path = "/etc/letsencrypt/servnest.cli" + +sudo_path = "/usr/bin/sudo" chgrp_path = "/usr/bin/chgrp" cat_path = "/usr/bin/cat" rm_path = "/usr/bin/rm" diff --git a/fn/ht.php b/fn/ht.php index 020d058..ac0f5ce 100644 --- a/fn/ht.php +++ b/fn/ht.php @@ -138,6 +138,8 @@ function htDeleteSite(string $address, string $type, string $user_id): void { exescape([ CONF['ht']['sudo_path'], CONF['ht']['certbot_path'], + '--config', + CONF['ht']['certbot_config_path'], 'delete', '--quiet', '--cert-name', diff --git a/pg-act/ht/add-dns.php b/pg-act/ht/add-dns.php index e235add..11aabf6 100644 --- a/pg-act/ht/add-dns.php +++ b/pg-act/ht/add-dns.php @@ -33,6 +33,8 @@ rateLimit(); exescape([ CONF['ht']['sudo_path'], CONF['ht']['certbot_path'], + '--config', + CONF['ht']['certbot_config_path'], 'certonly', '--domain', $_POST['domain'],