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

feat: add separate var for peer port use default val

parent 8055e2ba
No related branches found
No related tags found
No related merge requests found
Pipeline #64437 canceled with stages
...@@ -5,7 +5,7 @@ import { IConfAgent } from "../interfaces/agent.config.interface"; ...@@ -5,7 +5,7 @@ import { IConfAgent } from "../interfaces/agent.config.interface";
export const agentConfig = registerAs( export const agentConfig = registerAs(
"agent", "agent",
(): IConfAgent => ({ (): IConfAgent => ({
agentPeerPort: parseInt(process.env["AGENT_PEER_URL"]!.split(":")[2]), agentPeerPort: parseInt(process.env["AGENT_PEER_PORT"]!) || 8001,
agentPeerAddress: process.env["AGENT_PEER_URL"]!, agentPeerAddress: process.env["AGENT_PEER_URL"]!,
agentName: process.env["AGENT_NAME"]!, agentName: process.env["AGENT_NAME"]!,
agentKey: process.env["AGENT_KEY"]!, 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