mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
fix(accounts-service): use WAKUV2_PORT env var for account creation too
This commit is contained in:
parent
794563bfff
commit
8296dd443b
@ -304,6 +304,12 @@ proc getDefaultNodeConfig*(self: Service, installationId: string): JsonNode =
|
|||||||
|
|
||||||
result["WakuConfig"]["Enabled"] = false.newJBool()
|
result["WakuConfig"]["Enabled"] = false.newJBool()
|
||||||
|
|
||||||
|
if existsEnv("WAKUV2_PORT"):
|
||||||
|
let wV2Port = parseInt($getEnv("WAKUV2_PORT"))
|
||||||
|
# Waku V2 config
|
||||||
|
result["WakuV2Config"]["Port"] = wV2Port.newJInt()
|
||||||
|
result["WakuV2Config"]["UDPPort"] = wV2Port.newJInt()
|
||||||
|
|
||||||
if TEST_PEER_ENR != "":
|
if TEST_PEER_ENR != "":
|
||||||
result["ClusterConfig"]["BootNodes"] = %* @[TEST_PEER_ENR]
|
result["ClusterConfig"]["BootNodes"] = %* @[TEST_PEER_ENR]
|
||||||
result["ClusterConfig"]["TrustedMailServers"] = %* @[TEST_PEER_ENR]
|
result["ClusterConfig"]["TrustedMailServers"] = %* @[TEST_PEER_ENR]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user