Skip to content

Commit 78947b2

Browse files
committed
remove defaults
1 parent 8be02d0 commit 78947b2

3 files changed

Lines changed: 1 addition & 48 deletions

File tree

.env.docker.example

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,6 @@ REDIS_PASSWORD=<generated with: openssl rand -base64 32>
3737
# Must match security.explorer_api_key in jmdn.yaml.
3838
JMDN_SECURITY_EXPLORER_API_KEY=<generated>
3939

40-
# ─── Optional — consensus-rejection reporting to the orchestrator ──────────
41-
# When a block THIS node proposes is voted down by the committee, the node
42-
# POSTs the block's transactions + the reason to the orchestrator so it can
43-
# flip them from "included" to "consensus rejected" in its failed-transaction
44-
# table. Without this the orchestrator keeps showing them as included, because
45-
# it answers /api/process-block before any vote is requested.
46-
#
47-
# BOTH must be non-empty or reporting stays OFF (silent no-op).
48-
# The key must equal the orchestrator's CONSENSUS_CALLBACK_API_KEY — the
49-
# orchestrator disables its endpoint entirely when its own key is unset.
50-
#
51-
# The URL is resolved from INSIDE the jmdn container: "localhost" would mean
52-
# the container itself. Use the compose service name, or host.docker.internal
53-
# when the orchestrator runs on the host.
54-
#
55-
# JMDN_ORCHESTRATOR_URL=http://host.docker.internal:8092/api/block/consensus-rejected
56-
# JMDN_ORCHESTRATOR_API_KEY=<generated with: openssl rand -hex 32>
57-
5840
# ─── Optional — resource caps, scale to host (DOCKER.md §4) ───────────────
5941
# Uncomment and adjust on hosts bigger/smaller than the 8GB/4-core default.
6042
# 0 = unlimited (memory caps only recommended to leave unlimited on a

docker-compose.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -330,16 +330,6 @@ services:
330330
# Must match security.explorer_api_key in jmdn.yaml.
331331
JMDN_SECURITY_EXPLORER_API_KEY: "${JMDN_SECURITY_EXPLORER_API_KEY:-}"
332332

333-
# Consensus-rejection callback → orchestrator. Forwarded from .env so the
334-
# shared secret is not written into the mounted jmdn.yaml.
335-
# Both must be non-empty or reporting stays OFF (silent no-op), and the
336-
# key must equal the orchestrator's CONSENSUS_CALLBACK_API_KEY.
337-
# Note the URL is resolved from INSIDE this container: use the
338-
# orchestrator's service name, or host.docker.internal when it runs on the
339-
# host — "localhost" here means the jmdn container itself.
340-
JMDN_ORCHESTRATOR_URL: "${JMDN_ORCHESTRATOR_URL:-}"
341-
JMDN_ORCHESTRATOR_API_KEY: "${JMDN_ORCHESTRATOR_API_KEY:-}"
342-
343333
volumes:
344334
# Node config — jmdn.yaml must exist next to this file (see DOCKER.md Step 3).
345335
- ./jmdn.yaml:/etc/jmdn/jmdn.yaml:ro

jmdn_default.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,4 @@ alerts:
220220
url: "" # e.g. "https://tg.jmdt.io/multi-channel"
221221
api_key: "" # Prefer env: JMDN_ALERTS_API_KEY
222222
chat_id: "" # Prefer env: JMDN_ALERTS_CHAT_ID
223-
http_timeout: 10s
224-
225-
# ── Orchestrator callback ──────────────────────────────
226-
# Where this node reports a block IT PROPOSED that the consensus committee
227-
# voted down, so the orchestrator can flip those transactions from
228-
# "included" to "consensus rejected" in its failed-transaction table.
229-
#
230-
# The orchestrator answers /api/process-block BEFORE any vote is requested,
231-
# so without this callback a rejected block's transactions stay mislabelled
232-
# as included. api_key must equal the orchestrator's
233-
# CONSENSUS_CALLBACK_API_KEY; the orchestrator disables the route when its
234-
# own key is unset.
235-
#
236-
# Empty url or api_key => reporting is OFF (silent no-op).
237-
# Prefer env for the secret: JMDN_ORCHESTRATOR_API_KEY
238-
orchestrator:
239-
url: "" # e.g. "http://127.0.0.1:8092/api/block/consensus-rejected"
240-
api_key: "" # Prefer env: JMDN_ORCHESTRATOR_API_KEY
241-
http_timeout: 10s
242-
max_attempts: 3 # total POST attempts per report (1 = no retry)
223+
http_timeout: 10s

0 commit comments

Comments
 (0)