A simple HTTPS ingress for Kubernetes clusters, designed to work well with Anubis.

fix(server): give the grpc port proxy protocol support

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 45de1d40 f42b9be9

+4 -1
+4 -1
server/server.go
··· 88 88 } 89 89 defer lis.Close() 90 90 91 + if s.cfg.proxyProto { 92 + lis = &proxyproto.Listener{Listener: lis} 93 + } 94 + 91 95 healthSrv.SetServingStatus("grpc", healthv1.HealthCheckResponse_SERVING) 92 96 93 97 return srv.Serve(lis) ··· 126 130 defer lis.Close() 127 131 128 132 if s.cfg.proxyProto { 129 - slog.Info("using proxy protocol", "protocol", "https") 130 133 lis = &proxyproto.Listener{Listener: lis} 131 134 } 132 135 lis = tls.NewListener(lis, tc)