mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-08 10:49:22 +01:00
feat: disable location configuration by default
This commit is contained in:
parent
dba1f82ee4
commit
c66cedaf97
@ -167,10 +167,13 @@ if [[ "$*" == "/bin/bash /app/start.sh" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
check_writable_directory '/etc/nginx/certs'
|
check_writable_directory '/etc/nginx/certs'
|
||||||
check_writable_directory '/etc/nginx/vhost.d'
|
parse_true "${ACME_HTTP_CHALLENGE_LOCATION:=false}" && check_writable_directory '/etc/nginx/vhost.d'
|
||||||
check_writable_directory '/etc/acme.sh'
|
check_writable_directory '/etc/acme.sh'
|
||||||
check_writable_directory '/usr/share/nginx/html'
|
check_writable_directory '/usr/share/nginx/html'
|
||||||
[[ -f /app/letsencrypt_user_data ]] && check_writable_directory '/etc/nginx/conf.d'
|
if [[ -f /app/letsencrypt_user_data ]]; then
|
||||||
|
check_writable_directory '/etc/nginx/vhost.d'
|
||||||
|
check_writable_directory '/etc/nginx/conf.d'
|
||||||
|
fi
|
||||||
check_default_cert_key
|
check_default_cert_key
|
||||||
check_dh_group
|
check_dh_group
|
||||||
reload_nginx
|
reload_nginx
|
||||||
|
@ -348,8 +348,10 @@ function update_cert {
|
|||||||
for domain in "${hosts_array[@]}"; do
|
for domain in "${hosts_array[@]}"; do
|
||||||
# Add all the domains to certificate
|
# Add all the domains to certificate
|
||||||
params_issue_arr+=(--domain "$domain")
|
params_issue_arr+=(--domain "$domain")
|
||||||
# Add location configuration for the domain
|
# If enabled, add location configuration for the domain
|
||||||
|
if parse_true "${ACME_HTTP_CHALLENGE_LOCATION:=false}"; then
|
||||||
add_location_configuration "$domain" || reload_nginx
|
add_location_configuration "$domain" || reload_nginx
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
params_issue_arr=("${params_base_arr[@]}" "${params_issue_arr[@]}")
|
params_issue_arr=("${params_base_arr[@]}" "${params_issue_arr[@]}")
|
||||||
|
Loading…
Reference in New Issue
Block a user