File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,13 @@ if [[ "$*" == "/bin/bash /app/start.sh" ]]; then
167
167
exit 1
168
168
fi
169
169
check_writable_directory ' /etc/nginx/certs'
170
- check_writable_directory ' /etc/nginx/vhost.d'
170
+ parse_true " ${ACME_HTTP_CHALLENGE_LOCATION := false} " && check_writable_directory ' /etc/nginx/vhost.d'
171
171
check_writable_directory ' /etc/acme.sh'
172
172
check_writable_directory ' /usr/share/nginx/html'
173
- [[ -f /app/letsencrypt_user_data ]] && check_writable_directory ' /etc/nginx/conf.d'
173
+ if [[ -f /app/letsencrypt_user_data ]]; then
174
+ check_writable_directory ' /etc/nginx/vhost.d'
175
+ check_writable_directory ' /etc/nginx/conf.d'
176
+ fi
174
177
check_default_cert_key
175
178
check_dh_group
176
179
reload_nginx
Original file line number Diff line number Diff line change @@ -348,8 +348,10 @@ function update_cert {
348
348
for domain in " ${hosts_array[@]} " ; do
349
349
# Add all the domains to certificate
350
350
params_issue_arr+=(--domain " $domain " )
351
- # Add location configuration for the domain
352
- add_location_configuration " $domain " || reload_nginx
351
+ # If enabled, add location configuration for the domain
352
+ if parse_true " ${ACME_HTTP_CHALLENGE_LOCATION:= false} " ; then
353
+ add_location_configuration " $domain " || reload_nginx
354
+ fi
353
355
done
354
356
355
357
params_issue_arr=(" ${params_base_arr[@]} " " ${params_issue_arr[@]} " )
You can’t perform that action at this time.
0 commit comments