diff --git a/README.md b/README.md index 71ed901..90b342e 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,9 @@ You will find more information about the special folders in the [documentation]( # Web UI -TODO + + +You will find more information about the web UI in the [documentation](#TODO). # Security tuning diff --git a/docs/img/web-ui.gif b/docs/img/web-ui.gif new file mode 100644 index 0000000..f110cb2 Binary files /dev/null and b/docs/img/web-ui.gif differ diff --git a/gen/Templator.py b/gen/Templator.py index 7b7de4d..6005a08 100644 --- a/gen/Templator.py +++ b/gen/Templator.py @@ -58,9 +58,18 @@ class Templator : return False def __save_config(self, type, config) : + first_servers = config["SERVER_NAME"].split(" ") data = "" for variable, value in config.items() : - if not self.__filter_var(variable) : + if self.__filter_var(variable) : + continue + add = True + if type == "global" : + for first_server in first_servers : + if variable.startswith(first_server + "_") : + add = False + break + if add : data += variable + "=" + value + "\n" file = self.__output_path if type == "global" :