diff --git a/backend/cmd/master.go b/backend/cmd/master.go index 2e739d29..bd9974aa 100644 --- a/backend/cmd/master.go +++ b/backend/cmd/master.go @@ -44,7 +44,8 @@ which runs api and assign tasks to worker nodes`, fmt.Println(fmt.Sprintf("invalid grpc-address: %s", masterGrpcAddress)) } opts = append(opts, apps.WithMasterGrpcAddress(address)) - viper.Set("grpc.client.address", masterGrpcAddress) + viper.Set("grpc.address", masterGrpcAddress) + viper.Set("grpc.server.address", masterGrpcAddress) } // app diff --git a/backend/cmd/worker.go b/backend/cmd/worker.go index 93a6ca1d..8930f478 100644 --- a/backend/cmd/worker.go +++ b/backend/cmd/worker.go @@ -44,7 +44,7 @@ assigned by the master node`, return } opts = append(opts, apps.WithWorkerGrpcAddress(address)) - viper.Set("grpc.client.address", workerGrpcAddress) + viper.Set("grpc.address", workerGrpcAddress) } // app diff --git a/backend/conf/config.yml b/backend/conf/config.yml index 302fe70f..d4c59e32 100644 --- a/backend/conf/config.yml +++ b/backend/conf/config.yml @@ -65,6 +65,7 @@ notification: config: path: '' grpc: - client: - address: localhost:9666 + address: localhost:9666 + server: + address: 0.0.0.0:9666 authKey: Crawlab2021! \ No newline at end of file