[mod] trailing spaces

This commit is contained in:
Laurent Peuch 2016-10-30 04:25:23 +01:00
parent bec8f63479
commit 32bf742367

View file

@ -1037,11 +1037,11 @@ def app_ssowatconf(auth):
# Check ACME challenge file is present in nginx conf
nginx_acme_challenge_conf_file = "/etc/nginx/conf.d/"+domain+".d/000-acmechallenge.conf"
if not (os.path.isfile(nginx_acme_challenge_conf_file)) : continue
# Check the file contains the ACME challenge uri
acme_uri = '/.well-known/acme-challenge'
if not (acme_uri in open(nginx_acme_challenge_conf_file).read()) : continue
# If so, then authorize the ACME challenge uri to unprotected regex
regex = domain+"/%.well%-known/acme%-challenge/.*$"
unprotected_regex.append(regex)