1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-03-21 21:47:11 +02:00

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:
Joel Speed 2021-03-26 14:36:15 +00:00 committed by GitHub
commit 5497310673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 {