You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-11-29 22:48:19 +02:00
Metrics server should be constructed with secure bind address for TLS
This commit is contained in:
@@ -274,7 +274,7 @@ func (p *OAuthProxy) setupServer(opts *options.Options) error {
|
||||
metricsServer, err := proxyhttp.NewServer(proxyhttp.Opts{
|
||||
Handler: middleware.DefaultMetricsHandler,
|
||||
BindAddress: opts.MetricsServer.BindAddress,
|
||||
SecureBindAddress: opts.MetricsServer.BindAddress,
|
||||
SecureBindAddress: opts.MetricsServer.SecureBindAddress,
|
||||
TLS: opts.MetricsServer.TLS,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user