Fix network section merge to preserve http-proxy from stack init
The network section was being overwritten by ports, losing any http-proxy configuration provided by the stack's init hook. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>afd-caddy-ingress
parent
81fb4675f9
commit
e6d0c90098
|
|
@ -368,7 +368,10 @@ def init_operation(deploy_command_context, stack, deployer_type, config,
|
|||
spec_file_content.update({"config": merged_config})
|
||||
|
||||
ports = _get_mapped_ports(stack, map_ports_to_host)
|
||||
spec_file_content.update({"network": {"ports": ports}})
|
||||
# Merge network section instead of overwriting (preserve http-proxy from stack init)
|
||||
orig_network = spec_file_content.get("network", {})
|
||||
orig_network["ports"] = ports
|
||||
spec_file_content["network"] = orig_network
|
||||
|
||||
named_volumes = _get_named_volumes(stack)
|
||||
if named_volumes:
|
||||
|
|
|
|||
Loading…
Reference in New Issue