瀏覽代碼

Autoconfigure certbot using cli.ini

Miraty 2 年之前
父節點
當前提交
03e61fad26
共有 3 個文件被更改,包括 1 次插入7 次删除
  1. 0 4
      DOCS/configuration.md
  2. 0 2
      config.ini
  3. 1 1
      pg-act/ht/add-dns.php

+ 0 - 4
DOCS/configuration.md

@@ -171,10 +171,6 @@ Filesystem path to the certbot binary. It is used through sudo to get a Let's En
 
 Filesystem paths to the corresponding GNU coreutils binary (other implementations are not tested). (Their PHP counterpart can't be used as they need to act as another user through sudo.)
 
-### `acme_path`
-
-Filesystem path to the root directory that is served when a request hits `.well-known/acme-challenge` on port 80. Certbot places ACME authentication files here to get Let's Encrypt certificates through the HTTP-01 challenge.
-
 ### `sftpgo_group`
 
 Linux group as who runs SFTPGo. (Gets full permissions on users directories.)

+ 0 - 2
config.ini

@@ -51,8 +51,6 @@ cat_path = "/usr/bin/cat"
 rm_path = "/usr/bin/rm"
 mkdir_path = "/usr/bin/mkdir"
 
-acme_path = "/srv/servnest/acme"
-
 sftpgo_group = "sftpgo"
 sftpgo_user = "sftpgo"
 

+ 1 - 1
pg-act/ht/add-dns.php

@@ -32,7 +32,7 @@ rateLimit();
 
 addSite($_SESSION['id'], $_POST['dir'], $_POST['domain'], 'dns');
 
-exec('2>&1 ' . CONF['ht']['sudo_path'] . ' ' . CONF['ht']['certbot_path'] . ' certonly' . (($_SESSION['type'] === 'approved') ? '' : ' --test-cert') . ' --key-type rsa --rsa-key-size 3072 --webroot --webroot-path ' . CONF['ht']['acme_path'] . ' --domain ' . $_POST['domain'], $output, $returnCode);
+exec('2>&1 ' . CONF['ht']['sudo_path'] . ' ' . CONF['ht']['certbot_path'] . ' certonly' . (($_SESSION['type'] === 'approved') ? '' : ' --test-cert') . ' --domain ' . $_POST['domain'], $output, $returnCode);
 if ($returnCode !== 0)
 	output(500, 'Certbot failed to get a Let\'s Encrypt certificate.', $output);