mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-22 21:47:16 +02:00
authenticate: fix debug and metrics endpoints (#3212)
This commit is contained in:
parent
b83bb8f2f7
commit
b435f73e2b
16 changed files with 167 additions and 128 deletions
|
@ -110,13 +110,15 @@ func NewFileOrEnvironmentSource(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
ports, err := netutil.AllocatePorts(3)
|
||||
ports, err := netutil.AllocatePorts(5)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
grpcPort := ports[0]
|
||||
httpPort := ports[1]
|
||||
outboundPort := ports[2]
|
||||
metricsPort := ports[3]
|
||||
debugPort := ports[4]
|
||||
|
||||
cfg := &Config{
|
||||
Options: options,
|
||||
|
@ -125,6 +127,8 @@ func NewFileOrEnvironmentSource(
|
|||
GRPCPort: grpcPort,
|
||||
HTTPPort: httpPort,
|
||||
OutboundPort: outboundPort,
|
||||
MetricsPort: metricsPort,
|
||||
DebugPort: debugPort,
|
||||
}
|
||||
metrics.SetConfigInfo(ctx, cfg.Options.Services, "local", cfg.Checksum(), true)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue