Merge pull request #1133 from oauth2-proxy/fix-metrics-server
Metrics server should be constructed with secure bind address for TLS
This commit is contained in:
		
						commit
						5497310673
					
				|  | @ -8,6 +8,8 @@ | |||
| 
 | ||||
| ## Changes since v7.1.0 | ||||
| 
 | ||||
| - [#1133](https://github.com/oauth2-proxy/oauth2-proxy/pull/1133) Metrics server should be constructed with secure bind address for TLS (@JoelSpeed) | ||||
| 
 | ||||
| # V7.1.0 | ||||
| 
 | ||||
| ## Release Highlights | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue