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

feat: seprate agent peer port with default val

parent ba81f724
No related branches found
No related tags found
No related merge requests found
Pipeline #64439 passed with stage
in 1 minute and 31 seconds
This commit is part of merge request !27. Comments created here will be created in the context of that merge request.
......@@ -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