mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-01-26 05:27:28 +02:00
Metrics server should be constructed with secure bind address for TLS
This commit is contained in:
parent
d64d717e63
commit
17009d8363
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
## Changes since v7.1.0
|
## 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
|
# V7.1.0
|
||||||
|
|
||||||
## Release Highlights
|
## Release Highlights
|
||||||
|
@ -274,7 +274,7 @@ func (p *OAuthProxy) setupServer(opts *options.Options) error {
|
|||||||
metricsServer, err := proxyhttp.NewServer(proxyhttp.Opts{
|
metricsServer, err := proxyhttp.NewServer(proxyhttp.Opts{
|
||||||
Handler: middleware.DefaultMetricsHandler,
|
Handler: middleware.DefaultMetricsHandler,
|
||||||
BindAddress: opts.MetricsServer.BindAddress,
|
BindAddress: opts.MetricsServer.BindAddress,
|
||||||
SecureBindAddress: opts.MetricsServer.BindAddress,
|
SecureBindAddress: opts.MetricsServer.SecureBindAddress,
|
||||||
TLS: opts.MetricsServer.TLS,
|
TLS: opts.MetricsServer.TLS,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user