mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 02:49:55 +00:00
feat!: Expose consensus debug port, restart EN on config file change (#42)
## What ❔ Subj ## Why ❔ QoL ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Documentation comments have been added / updated.
This commit is contained in:
@ -2,7 +2,7 @@ server_addr: '0.0.0.0:3054'
|
||||
public_addr: '{{ ansible_default_ipv4.address }}:{{ consensus_port }}'
|
||||
max_payload_size: 5000000
|
||||
gossip_dynamic_inbound_limit: 200
|
||||
{% if consensus_debug_port_enabled %}
|
||||
{% if enable_consensus_debug_port %}
|
||||
debug_page_addr: "0.0.0.0:{{ consensus_debug_port }}"
|
||||
{% endif %}
|
||||
rpc_config:
|
||||
|
||||
@ -80,7 +80,6 @@ services:
|
||||
- "traefik.http.routers.external_node_main.entrypoints=web"
|
||||
{% endif %}
|
||||
- "traefik.http.routers.external_node_main.service=external_node_main"
|
||||
|
||||
- "traefik.http.services.external_node_health.loadbalancer.server.port={{ healthcheck_port }}"
|
||||
- "traefik.http.routers.external_node_health.rule=PathPrefix(`/`)"
|
||||
- "traefik.http.routers.external_node_health.entrypoints=external_node_health"
|
||||
@ -94,6 +93,20 @@ services:
|
||||
- "traefik.tcp.routers.external_node_consensus.rule=HostSNI(`*`)"
|
||||
- "traefik.tcp.routers.external_node_consensus.entrypoints=external_node_consensus"
|
||||
- "traefik.tcp.routers.external_node_consensus.service=external_node_consensus"
|
||||
{% endif %}
|
||||
{% if enable_consensus and expose_consensus_debug_port %}
|
||||
- "traefik.http.services.external_node_consensus_debug.loadbalancer.server.port={{ consensus_debug_port }}"
|
||||
- "traefik.http.routers.external_node_consensus_debug.rule=PathPrefix(`{{ consensus_debug_port_path_prefix }}`)"
|
||||
{% if enable_tls %}
|
||||
- "traefik.http.routers.external_node_consensus_debug.entrypoints=websecure"
|
||||
- "traefik.http.routers.external_node_consensus_debug.tls.certresolver=myresolver"
|
||||
{% else %}
|
||||
- "traefik.http.routers.external_node_consensus_debug.entrypoints=web"
|
||||
{% endif %}
|
||||
- "traefik.http.routers.external_node_consensus_debug.service=external_node_consensus_debug"
|
||||
{% if enable_basic_auth %}
|
||||
- "traefik.http.routers.external_node_consensus_debug.middlewares=external_node_auth"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
expose:
|
||||
- {{ rpc_http_port }}
|
||||
@ -102,6 +115,9 @@ services:
|
||||
- {{ metrics_port }}
|
||||
{% if enable_consensus %}
|
||||
- {{ consensus_port }}
|
||||
{% if expose_consensus_debug_port %}
|
||||
- {{ consensus_debug_port }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
environment:
|
||||
ZKSYNC_HOME: "/"
|
||||
|
||||
Reference in New Issue
Block a user