From a8084981b473f6dfe70a27f578f4980da63e9f8d Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 8 Aug 2026 14:42:11 +0000 Subject: [PATCH] fix: always regenerate nginx.conf on deploy/update --- sources/python/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/python/main.py b/sources/python/main.py index 2dd2890..5313578 100644 --- a/sources/python/main.py +++ b/sources/python/main.py @@ -79,11 +79,10 @@ docker ps --filter name={container} --format '{{{{.Status}}}}' """) os.chmod(start_path, 0o755) - # Nginx config for optional customization + # Write nginx.conf (always regenerate to apply template updates) nginx_conf = f"{host_dir}/nginx.conf" - if not os.path.exists(nginx_conf): - with open(nginx_conf, "w") as f: - f.write(f"""# Wallarm node: {name} + with open(nginx_conf, "w") as f: + f.write(f"""# Wallarm node: {name} # Mount with: -v $(pwd)/nginx.conf:/etc/nginx/http.d/default.conf:ro server {{ listen 80;