Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/cmd/forwarder-agent/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
// GRPC stores the configuration for the router as a server using a PORT
// with mTLS certs and as a client.
type GRPC struct {
Host string `env:"AGENT_HOST, report"`
Port uint16 `env:"AGENT_PORT, report"`
CAFile string `env:"AGENT_CA_FILE_PATH, required, report"`
CertFile string `env:"AGENT_CERT_FILE_PATH, required, report"`
Expand Down Expand Up @@ -40,6 +41,7 @@ type Config struct {
func LoadConfig() Config {
cfg := Config{
GRPC: GRPC{
Host: "127.0.0.1",
Port: 3458,
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/forwarder-agent/app/forwarder_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (s *ForwarderAgent) Run() {
rx := v2.NewReceiver(diode, im, omm)

s.v2srv = v2.NewServer(
fmt.Sprintf("127.0.0.1:%d", s.grpc.Port),
fmt.Sprintf("%s:%d", s.grpc.Host, s.grpc.Port),
rx,
grpc.Creds(serverCreds),
grpc.MaxRecvMsgSize(10*1024*1024),
Expand Down