Fix shenanigans with global_config and multisite settings propagation in web UI

This commit is contained in:
Théophile Diot 2024-05-31 14:06:10 +01:00
parent 2a27fa3a39
commit dcf2b9e185
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -1132,7 +1132,7 @@ def global_config():
del variables["csrf_token"]
# Edit check fields and remove already existing ones
config = app.config["CONFIG"].get_config(global_only=True, methods=True, with_drafts=True)
config = app.config["CONFIG"].get_config(methods=True, with_drafts=True)
services = config["SERVER_NAME"]["value"].split(" ")
for variable, value in variables.copy().items():
if variable in ("AUTOCONF_MODE", "SWARM_MODE", "KUBERNETES_MODE", "SERVER_NAME", "IS_LOADING", "IS_DRAFT") or variable.endswith("SCHEMA"):