From 2c52938f778e76a8fa424d608777eb28043e7163 Mon Sep 17 00:00:00 2001 From: Alisa Dinaburg <alisa.dinaburg@vereign.com> Date: Thu, 12 Mar 2020 19:42:48 +0200 Subject: [PATCH] default value for grpcURL --- config.yaml.sample | 2 +- config/configs.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.yaml.sample b/config.yaml.sample index 728fa2d..b87eaea 100644 --- a/config.yaml.sample +++ b/config.yaml.sample @@ -7,7 +7,7 @@ dataStorageUrl: localhost:7777 grpcListenAddress: localhost:7877 restListenAddress: localhost:7878 # This one using by rest-gateway. Must contain the same domain name with issued certificate -grpcURL: key-storage-agent:7877 +grpcURL: localhost:7877 # VIAM Variables viamUUID: viam-system diff --git a/config/configs.go b/config/configs.go index 2630c02..93f09a7 100644 --- a/config/configs.go +++ b/config/configs.go @@ -8,9 +8,9 @@ import ( "code.vereign.com/code/viam-apis/authentication" "github.com/spf13/viper" -) -import _ "github.com/spf13/viper/remote" + _ "github.com/spf13/viper/remote" +) var SystemAuth = &authentication.Authentication{ Uuid: "undefined", @@ -44,7 +44,7 @@ func SetConfigValues(configFile, etcdURL string) { viper.SetDefault("restListenAddress", ":7878") viper.SetDefault("dataStorageUrl", "data-storage-agent:7777") viper.SetDefault("entitiesManagerUrl", "entities-management-agent:7779") - viper.SetDefault("grpcURL", "key-storage-agent:7877") + viper.SetDefault("grpcURL", "localhost:7877") viper.SetDefault("replaceKey", false) -- GitLab