boxdd: Add insecure mode
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ import (
|
||||
|
||||
func NewServer(startedService *StartedService, secret string) *grpc.Server {
|
||||
server := grpc.NewServer(
|
||||
grpc.ChainUnaryInterceptor(newUnaryAuthInterceptor(secret), UnaryErrorInterceptor),
|
||||
grpc.ChainStreamInterceptor(newStreamAuthInterceptor(secret), StreamErrorInterceptor),
|
||||
grpc.ChainUnaryInterceptor(newUnaryAuthInterceptor(secret)),
|
||||
grpc.ChainStreamInterceptor(newStreamAuthInterceptor(secret)),
|
||||
)
|
||||
healthServer := health.NewServer()
|
||||
RegisterStartedServiceServer(server, startedService)
|
||||
|
||||
Reference in New Issue
Block a user