mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-12 22:58:49 +00:00
fix/dev-config-raft-adv
set RQLiteRaftInternalPort and advertised addresses to fix health checks
This commit is contained in:
parent
9f43cea907
commit
2d5ab372e7
@ -148,11 +148,16 @@ func (ce *ConfigEnsurer) ensureNodeConfig(nodeSpec NodeSpec, peerAddrs []string)
|
||||
DataDir: nodeDir,
|
||||
RQLiteHTTPPort: nodeSpec.RQLiteHTTPPort,
|
||||
RQLiteRaftPort: nodeSpec.RQLiteRaftPort,
|
||||
// Internal Raft port is the same as the external in local dev
|
||||
RQLiteRaftInternalPort: nodeSpec.RQLiteRaftPort,
|
||||
RQLiteJoinAddress: nodeSpec.RQLiteJoinTarget,
|
||||
BootstrapPeers: peerAddrs,
|
||||
ClusterAPIPort: nodeSpec.ClusterAPIPort,
|
||||
IPFSAPIPort: nodeSpec.IPFSAPIPort,
|
||||
UnifiedGatewayPort: nodeSpec.UnifiedGatewayPort,
|
||||
// Advertise local addresses for HTTP and Raft in dev
|
||||
HTTPAdvAddress: fmt.Sprintf("localhost:%d", nodeSpec.UnifiedGatewayPort),
|
||||
RaftAdvAddress: fmt.Sprintf("localhost:%d", nodeSpec.RQLiteRaftPort),
|
||||
}
|
||||
|
||||
config, err := templates.RenderNodeConfig(data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user