Allow extending traefik dynamic config

This commit is contained in:
GeorgianaElena
2020-06-18 17:29:50 +03:00
parent 6cbc997ed8
commit c31b9d3dea
5 changed files with 45 additions and 6 deletions

View File

@@ -131,7 +131,7 @@ def ensure_traefik_config(state_dir):
os.fchmod(f.fileno(), 0o600)
toml.dump(new_toml, f)
with open(os.path.join(state_dir, "rules.toml"), "w") as f:
with open(os.path.join(state_dir, 'rules', "rules.toml"), "w") as f:
os.fchmod(f.fileno(), 0o600)
# ensure acme.json exists and is private