@parity/ppn-network-config 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/ports.env +22 -16
- package/dist/dub.js +1 -1
- package/dist/dub.js.map +1 -1
- package/package.json +1 -1
package/config/ports.env
CHANGED
|
@@ -38,11 +38,11 @@ PEOPLE_P2P_WSS_PORT=31336
|
|
|
38
38
|
BULLETIN_P2P_WSS_PORT=31333
|
|
39
39
|
WEB3_STORAGE_P2P_WSS_PORT=31337
|
|
40
40
|
|
|
41
|
-
# Bootnode hostname (127.0.0.1 for local
|
|
41
|
+
# Bootnode hostname (127.0.0.1 for local; a deployment overrides it)
|
|
42
42
|
BOOTNODE_HOSTNAME=127.0.0.1
|
|
43
43
|
|
|
44
44
|
# Storage-provider data dir (disk mode). Empty locally so the wrapper derives it
|
|
45
|
-
# from DATA_DIR;
|
|
45
|
+
# from DATA_DIR; a deployment patches this to an absolute path under the
|
|
46
46
|
# persistent DATA_DIR, because zombie-cli does not forward env vars to
|
|
47
47
|
# custom_processes (same reason BOOTNODE_HOSTNAME is patched here).
|
|
48
48
|
WEB3_STORAGE_PROVIDER_DATA_DIR=
|
|
@@ -59,7 +59,7 @@ ETH_RPC_PORT=8545
|
|
|
59
59
|
|
|
60
60
|
# eth-rpc's receipt/index cache. Empty locally so the wrapper derives it from
|
|
61
61
|
# DATA_DIR (as $DATA_DIR/eth-rpc-db — NOT eth-rpc, which is where zombienet
|
|
62
|
-
# writes that process's log);
|
|
62
|
+
# writes that process's log); a deployment patches this to an absolute
|
|
63
63
|
# path under the persistent DATA_DIR, for the same reason
|
|
64
64
|
# WEB3_STORAGE_PROVIDER_DATA_DIR above is patched (zombie-cli does not forward
|
|
65
65
|
# env vars to custom_processes). The cache must share the chain data's lifetime:
|
|
@@ -92,21 +92,27 @@ DUB_PORT=8092
|
|
|
92
92
|
DASHBOARD_PORT=8090
|
|
93
93
|
|
|
94
94
|
# What the dashboard advertises as the public address of every chain and service. Empty
|
|
95
|
-
# locally, so it falls back to http://127.0.0.1:$DASHBOARD_PORT;
|
|
96
|
-
#
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
# to connect to 127.0.0.1.
|
|
95
|
+
# locally, so it falls back to http://127.0.0.1:$DASHBOARD_PORT; a deployment patches it to
|
|
96
|
+
# its own public URL. It has to be set here rather than in the environment, because zombienet
|
|
97
|
+
# hands the dashboard, a custom process, no environment at all. Without it a server behind a
|
|
98
|
+
# reverse proxy tells every browser to connect to 127.0.0.1.
|
|
100
99
|
PPN_PUBLIC_URL=
|
|
101
100
|
|
|
101
|
+
# Where the dashboard binds. Loopback by default, which is also what leaves the sudo action
|
|
102
|
+
# plane open (see docs/DASHBOARD.md): widen this and actions need DASHBOARD_ACTIONS_TOKEN.
|
|
103
|
+
DASHBOARD_HOST=
|
|
104
|
+
|
|
105
|
+
# The bearer token for the sudo action plane when the dashboard is bound beyond loopback.
|
|
106
|
+
# Empty means the dashboard is read-only there.
|
|
107
|
+
DASHBOARD_ACTIONS_TOKEN=
|
|
108
|
+
|
|
102
109
|
# Where this run's chain state and per-process logs live. Empty locally: `ppn start`
|
|
103
110
|
# resolves it per mode (data/ vs data-fork/) and writes the answer to
|
|
104
|
-
# config/ports.local.env, which is sourced after this file. A
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
#
|
|
108
|
-
#
|
|
109
|
-
# (zombie-cli does not forward env vars to custom_processes).
|
|
111
|
+
# config/ports.local.env, which is sourced after this file. A deployment that spawns
|
|
112
|
+
# zombie-cli directly never runs `ppn start`, so nothing writes it there and the dashboard
|
|
113
|
+
# falls back to <release>/data, an empty directory: no logs, no spawn stamp, no chain-spec
|
|
114
|
+
# downloads. A deployment patches this to its persistent DATA_DIR, for the same reason the
|
|
115
|
+
# three paths above are patched (zombie-cli does not forward env vars to custom_processes).
|
|
110
116
|
PPN_DATA_DIR=
|
|
111
117
|
|
|
112
118
|
# Postgres cluster directory. Empty locally so the wrapper derives it from
|
|
@@ -116,13 +122,13 @@ PPN_DATA_DIR=
|
|
|
116
122
|
# The directory keeps the name identity-pgdata deliberately: renaming a state path
|
|
117
123
|
# orphans the cluster already on a deployed server, which would silently reinitialise
|
|
118
124
|
# an empty one. A name is not worth someone's data.
|
|
119
|
-
#
|
|
125
|
+
# a deployment patches this to an absolute path under the persistent
|
|
120
126
|
# DATA_DIR, for the same reason WEB3_STORAGE_PROVIDER_DATA_DIR above is patched
|
|
121
127
|
# (zombie-cli does not forward env vars to custom_processes).
|
|
122
128
|
DUB_POSTGRES_DATA_DIR=
|
|
123
129
|
|
|
124
130
|
|
|
125
|
-
# Aggregate lists
|
|
131
|
+
# Aggregate lists
|
|
126
132
|
RELAY_PORTS="$RELAY_ALICE_PORT $RELAY_BOB_PORT $RELAY_CHARLIE_PORT $RELAY_DAVE_PORT $RELAY_EVE_PORT $RELAY_FERDIE_PORT"
|
|
127
133
|
PARACHAIN_PORTS="$PEOPLE_PORT $ASSET_HUB_PORT $BULLETIN_PORT $WEB3_STORAGE_PORT"
|
|
128
134
|
ALL_PORTS="$RELAY_PORTS $PARACHAIN_PORTS"
|
package/dist/dub.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// as custom_process `env`, so the values a service runs with are visible in a
|
|
23
23
|
// diff of zombienet-configs/local-dev.toml rather than buried in a shell
|
|
24
24
|
// default. Secrets deliberately do NOT appear here — scripts/dub/service.sh
|
|
25
|
-
// reads those from
|
|
25
|
+
// reads those from the secrets file at exec time, matching the boundary the
|
|
26
26
|
// deployable profile already draws: public identifiers at generate time,
|
|
27
27
|
// private keys at runtime only.
|
|
28
28
|
/** Well-known dev account. Also what PPN grants attestation allowance to. */
|
package/dist/dub.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dub.js","sourceRoot":"","sources":["../src/dub.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,6FAA6F;AAC7F,2FAA2F;AAC3F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