fix: use dedicated config values for grpc TLS

This commit is contained in:
Michael Barz
2024-09-23 16:52:02 +02:00
parent 0ce0ac5af7
commit 04ebb3def5

View File

@@ -46,13 +46,13 @@ func Server(cfg *config.Config) *cli.Command {
return err
}
tm, err := pool.StringToTLSMode(cfg.Commons.GRPCClientTLS.Mode)
tm, err := pool.StringToTLSMode(cfg.CS3Api.GRPCClientTLS.Mode)
if err != nil {
return err
}
gatewaySelector, err := pool.GatewaySelector(
cfg.CS3Api.Gateway.Name,
pool.WithTLSCACert(cfg.Commons.GRPCClientTLS.CACert),
pool.WithTLSCACert(cfg.CS3Api.GRPCClientTLS.CACert),
pool.WithTLSMode(tm),
pool.WithRegistry(registry.GetRegistry()),
pool.WithTracerProvider(traceProvider),