Skip to content
Snippets Groups Projects
Unverified Commit 5cdd234a authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

feat: seprate agent peer port with default val

parent a72dc2b7
No related branches found
No related tags found
1 merge request!27feat: add separate var for peer port
Pipeline #64489 passed with stage
in 1 minute and 53 seconds
......@@ -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.
Finish editing this message first!
Please register or to comment