fix: always regenerate nginx.conf on deploy/update
This commit is contained in:
parent
3a80e1067a
commit
a8084981b4
1 changed files with 3 additions and 4 deletions
|
|
@ -79,11 +79,10 @@ docker ps --filter name={container} --format '{{{{.Status}}}}'
|
||||||
""")
|
""")
|
||||||
os.chmod(start_path, 0o755)
|
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"
|
nginx_conf = f"{host_dir}/nginx.conf"
|
||||||
if not os.path.exists(nginx_conf):
|
with open(nginx_conf, "w") as f:
|
||||||
with open(nginx_conf, "w") as f:
|
f.write(f"""# Wallarm node: {name}
|
||||||
f.write(f"""# Wallarm node: {name}
|
|
||||||
# Mount with: -v $(pwd)/nginx.conf:/etc/nginx/http.d/default.conf:ro
|
# Mount with: -v $(pwd)/nginx.conf:/etc/nginx/http.d/default.conf:ro
|
||||||
server {{
|
server {{
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue