mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 11:52:53 +02:00
metrics: add TLS options (#1939)
* move metrics listener to envoy * add metrics tls options * add test * update docs * update config proto * add function to validate metric addr * fix validation
This commit is contained in:
parent
ec02761e2f
commit
a825b06014
15 changed files with 633 additions and 296 deletions
|
@ -52,11 +52,14 @@ type Server struct {
|
|||
name string
|
||||
xdsmgr *xdsmgr.Manager
|
||||
filemgr *filemgr.Manager
|
||||
metricsMgr *config.MetricsManager
|
||||
}
|
||||
|
||||
// NewServer creates a new Server. Listener ports are chosen by the OS.
|
||||
func NewServer(name string) (*Server, error) {
|
||||
srv := &Server{}
|
||||
func NewServer(name string, metricsMgr *config.MetricsManager) (*Server, error) {
|
||||
srv := &Server{
|
||||
metricsMgr: metricsMgr,
|
||||
}
|
||||
srv.currentConfig.Store(versionedConfig{
|
||||
Config: &config.Config{Options: &config.Options{}},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue