diff --git a/assets/scripts/swarm.py b/assets/scripts/swarm.py index e505336..c7741ec 100644 --- a/assets/scripts/swarm.py +++ b/assets/scripts/swarm.py @@ -10,13 +10,9 @@ } if os.getenv("HAPROXY_PASSWORD"): - password = os.getenv("HAPROXY_PASSWORD") - if password.startswith("/run/secrets/"): # support docker secrets - with open(password) as passfh: - password = passfh.read().strip() result["stats"] = { "username": os.getenv("HAPROXY_USERNAME") if os.getenv("HAPROXY_USERNAME") else "admin", - "password": password, + "password": os.getenv("HAPROXY_PASSWORD"), "port": os.getenv("HAPROXY_STATS_PORT") if os.getenv("HAPROXY_STATS_PORT") else "1936", }