mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Update how we handle custom configs
This commit is contained in:
parent
6a1ff499c1
commit
94964a910a
2 changed files with 11 additions and 1 deletions
|
@ -178,7 +178,8 @@ class Configurator:
|
|||
if ret:
|
||||
config[variable] = value
|
||||
elif (
|
||||
not variable.startswith("PYTHON")
|
||||
"CUSTOM_CONF" not in variable
|
||||
and not variable.startswith("PYTHON")
|
||||
and not variable.startswith("KUBERNETES_SERVICE_")
|
||||
and not variable.startswith("KUBERNETES_PORT_")
|
||||
and not variable.startswith("SVC_")
|
||||
|
|
|
@ -54,6 +54,9 @@ def get_instance_configs_and_apis(instance: Any, db, _type="Docker"):
|
|||
),
|
||||
}
|
||||
)
|
||||
logger.info(
|
||||
f"Found custom conf env var {'for service ' + custom_conf[0] if custom_conf[0] else 'without service'} with type {custom_conf[1]} and name {custom_conf[2]}"
|
||||
)
|
||||
else:
|
||||
tmp_config[splitted[0]] = splitted[1]
|
||||
|
||||
|
@ -217,6 +220,9 @@ if __name__ == "__main__":
|
|||
),
|
||||
}
|
||||
)
|
||||
logger.info(
|
||||
f"Found custom conf env var {'for service ' + custom_conf[0] if custom_conf[0] else 'without service'} with type {custom_conf[1]} and name {custom_conf[2]}"
|
||||
)
|
||||
configs_path = join(sep, "etc", "bunkerweb", "configs")
|
||||
root_dirs = listdir(configs_path)
|
||||
for root, dirs, files in walk(configs_path):
|
||||
|
@ -270,6 +276,9 @@ if __name__ == "__main__":
|
|||
),
|
||||
}
|
||||
)
|
||||
logger.info(
|
||||
f"Found custom conf env var {'for service ' + custom_conf[0] if custom_conf[0] else 'without service'} with type {custom_conf[1]} and name {custom_conf[2]}"
|
||||
)
|
||||
else:
|
||||
tmp_config[splitted[0]] = splitted[1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue