File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,7 @@ const internalCertificate = {
758758 } ,
759759
760760 /**
761+ * Request a certificate using the http challenge
761762 * @param {Object } certificate the certificate row
762763 * @returns {Promise }
763764 */
@@ -768,6 +769,7 @@ const internalCertificate = {
768769 '--config "' + letsencryptConfig + '" ' +
769770 '--cert-name "npm-' + certificate . id + '" ' +
770771 '--agree-tos ' +
772+ '--authenticator webroot ' +
771773 '--email "' + certificate . meta . letsencrypt_email + '" ' +
772774 '--preferred-challenges "dns,http" ' +
773775 '--domains "' + certificate . domain_names . join ( ',' ) + '" ' +
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ server {
1616 error_log /data/logs/default-host_error.log warn;
1717{% include "_exploits.conf" %}
1818
19+ include conf.d/include/letsencrypt-acme-challenge.conf;
20+
1921{%- if value == "404" %}
2022 location / {
2123 return 404;
Original file line number Diff line number Diff line change 11text = True
22non-interactive = True
3- authenticator = webroot
43webroot-path = /data/letsencrypt-acme-challenge
Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ server {
99
1010 server_name localhost-nginx-proxy-manager;
1111 access_log /data/logs/fallback_access.log standard;
12- error_log /dev/null crit ;
12+ error_log /data/logs/fallback_error.log warn ;
1313 include conf.d/include/assets.conf;
1414 include conf.d/include/block-exploits.conf;
15+ include conf.d/include/letsencrypt-acme-challenge.conf;
1516
1617 location / {
1718 index index.html;
You can’t perform that action at this time.
0 commit comments