Skip to content

Commit 1894960

Browse files
authored
Merge pull request #1286 from jc21/fixes-certificate-renewal
Fixes certificate renewal
2 parents 8aded1a + 83c5c55 commit 1894960

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

backend/internal/certificate.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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(',') + '" ' +

backend/templates/default.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

docker/rootfs/etc/letsencrypt.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
text = True
22
non-interactive = True
3-
authenticator = webroot
43
webroot-path = /data/letsencrypt-acme-challenge

docker/rootfs/etc/nginx/conf.d/default.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)