crowdsec and generator fixes

This commit is contained in:
bunkerity
2021-06-03 17:44:12 +02:00
parent d2135c19c0
commit 4b31d005eb
4 changed files with 10 additions and 5 deletions

View File

@@ -34,6 +34,10 @@ class Templator :
if type == "site" and self.__config_global["MULTISITE"] == "yes" :
site_config = copy.deepcopy(self.__config_sites[first_server])
real_config.update(site_config)
elif type == "global" and self.__config_global["MULTISITE"] == "yes" and self.__config_global["SERVER_NAME"] != "" :
for k, v in self.__config_sites.items() :
for k2, v2 in v.items() :
real_config[k + "_" + k2] = v2
if not server_name is None :
real_config["SERVER_NAME"] = server_name
if not first_server is None :