File tree 3 files changed +11
-7
lines changed
rootfs/etc/nginx/conf.d/include
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ const internalSsl = {
30
30
. then ( result => {
31
31
logger . info ( result ) ;
32
32
internalSsl . interval_processing = false ;
33
- return result ;
33
+
34
+ return internalNginx . reload ( )
35
+ . then ( ( ) => {
36
+ return result ;
37
+ } ) ;
34
38
} )
35
39
. catch ( err => {
36
40
logger . error ( err ) ;
Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ server {
20
20
ssl_certificate_key / etc/ letsencrypt/ live/ < %- hostname % > / privkey .pem ;
21
21
< % } - %>
22
22
23
- <% if (typeof access_list_id !== ' undefined' && access_list_id) { -% >
24
- auth_basic " Authorization required" ;
25
- auth_basic_user_file / config/ access/ < %- access_list_id % > ;
26
- < % } - %>
27
-
28
23
<% - typeof advanced !== ' undefined' && advanced ? advanced : ' ' %>
29
24
30
25
location / {
26
+ <% if (typeof access_list_id !== ' undefined' && access_list_id) { -% >
27
+ auth_basic " Authorization required" ;
28
+ auth_basic_user_file / config/ access/ < %- access_list_id % > ;
29
+ < % } - %>
31
30
<% - typeof force_ssl !== ' undefined' && force_ssl ? ' include conf.d/include/force-ssl.conf;' : ' ' %>
32
31
include conf.d/include/proxy.conf;
33
32
}
Original file line number Diff line number Diff line change 2
2
# We use ^~ here, so that we don't check other regexes (for speed-up). We actually MUST cancel
3
3
# other regex checks, because in our other config files have regex rule that denies access to files with dotted names.
4
4
location ^~ /.well-known/acme-challenge/ {
5
+ auth_basic off;
5
6
6
7
# Set correct content type. According to this:
7
8
# https://community.letsencrypt.org/t/using-the-webroot-domain-verification-method/1445/29
@@ -14,7 +15,7 @@ location ^~ /.well-known/acme-challenge/ {
14
15
# there to "webroot".
15
16
# Do NOT use alias, use root! Target directory is located here:
16
17
# /var/www/common/letsencrypt/.well-known/acme-challenge/
17
- root /config/letsencrypt-acme-challenge;
18
+ root /config/letsencrypt-acme-challenge;
18
19
}
19
20
20
21
# Hide /acme-challenge subdirectory and return 404 on all requests.
You can’t perform that action at this time.
0 commit comments