Revert backwards incompatible reva config changes
The commit of unifying the Reva Client config introduced some backwards incompatible changes to the config structures and yaml config tags. For the "thumbnails", "webdav" and "notifications" service. This reverts the changes on the service and introduces TLS options in a backwards compatible manner.
This commit is contained in:
committed by
Ralf Haferkamp
parent
8cead4557f
commit
fbb3382a42
@@ -26,7 +26,15 @@ func NewService(opts ...Option) grpc.Service {
|
||||
grpc.Version(version.GetString()),
|
||||
)
|
||||
tconf := options.Config.Thumbnail
|
||||
gc, err := pool.GetGatewayServiceClient(tconf.Reva.Address, tconf.Reva.GetRevaOptions()...)
|
||||
tm, err := pool.StringToTLSMode(tconf.RevaGatewayTLSMode)
|
||||
if err != nil {
|
||||
options.Logger.Error().Err(err).Msg("could not get gateway client tls mode")
|
||||
return grpc.Service{}
|
||||
}
|
||||
gc, err := pool.GetGatewayServiceClient(tconf.RevaGateway,
|
||||
pool.WithTLSCACert(tconf.RevaGatewayTLSCACert),
|
||||
pool.WithTLSMode(tm),
|
||||
)
|
||||
if err != nil {
|
||||
options.Logger.Error().Err(err).Msg("could not get gateway client")
|
||||
return grpc.Service{}
|
||||
|
||||
Reference in New Issue
Block a user