fix global.env generation and add web UI gif to README
This commit is contained in:
parent
0573ba7b5a
commit
8e4a65feca
@ -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
BIN
docs/img/web-ui.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
@ -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" :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user