fix global.env generation and add web UI gif to README

This commit is contained in:
florian 2021-08-09 20:56:52 +02:00
parent 0573ba7b5a
commit 8e4a65feca
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
3 changed files with 13 additions and 2 deletions

View File

@ -188,7 +188,9 @@ You will find more information about the special folders in the [documentation](
# Web UI
TODO
<img src="https://github.com/bunkerity/bunkerized-nginx/blob/dev/docs/img/web-ui.gif?raw=true" />
You will find more information about the web UI in the [documentation](#TODO).
# Security tuning

BIN
docs/img/web-ui.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -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" :