add TLS grpc support for filer meta clients

This commit is contained in:
Chris Lu
2021-08-03 01:30:35 -07:00
parent fe60c6ef9a
commit 3afbf04007
5 changed files with 6 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ func (iamopt *IamOptions) startIamServer() bool {
return false
}
util.LoadConfiguration("security", false)
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
for {
err = pb.WithGrpcFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {