1
0
Fork 0
This commit is contained in:
Joao Gilberto 2022-11-09 18:27:22 -03:00
parent 5c491f749a
commit 79819aeacb
6 changed files with 41 additions and 20 deletions

View file

@ -49,7 +49,7 @@ class HaproxyConfigGenerator:
def __init__(self, mapping):
self.mapping = mapping
self.mapping.setdefault("ssl_mode", 'default')
self.mapping.setdefault("letsencrypt", {"email": ""})
self.mapping.setdefault("letsencrypt", {"email": "", "staging": False})
self.mapping["ssl_mode"] = self.mapping["ssl_mode"].lower()
self.label = DockerLabelHandler(mapping['lookup_label'] if 'lookup_label' in mapping else "easyhaproxy")
self.letsencrypt_hosts = []