1
0
Fork 0

Fix loop in redirect_ssl

This commit is contained in:
Joao M 2022-08-17 02:28:24 +00:00
parent 0a4f78a153
commit 1a6472a5b3
5 changed files with 144 additions and 8 deletions

View file

@ -17,6 +17,11 @@ if os.getenv("HAPROXY_PASSWORD"):
}
result["lookup_label"] = os.getenv("EASYHAPROXY_LABEL_PREFIX") if os.getenv("EASYHAPROXY_LABEL_PREFIX") else "easyhaproxy"
if (os.getenv("EASYHAPROXY_LETSENCRYPT_EMAIL")):
result["letsencrypt"] = {
"email": os.getenv("EASYHAPROXY_LETSENCRYPT_EMAIL")
}
cfg = HaproxyConfigGenerator(result)
print(cfg.generate(line_list))