Skip to content
Snippets Groups Projects
Commit 63ca360e authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

feat: add separate var for peer port

parent a72dc2b7
No related branches found
No related tags found
1 merge request!27feat: add separate var for peer port
Pipeline #64493 failed
......@@ -5,7 +5,7 @@ import { IConfAgent } from "../interfaces/agent.config.interface";
export const agentConfig = registerAs(
"agent",
(): IConfAgent => ({
agentPeerPort: parseInt(process.env["AGENT_PEER_URL"]!.split(":")[2]),
agentPeerPort: parseInt(process.env["AGENT_PEER_PORT"]!) || 8001,
agentPeerAddress: process.env["AGENT_PEER_URL"]!,
agentName: process.env["AGENT_NAME"]!,
agentKey: process.env["AGENT_KEY"]!,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment