Skip to content

Commit

Permalink
Initialize LogCollector with http client with Root CAs
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Sep 11, 2024
1 parent 7f8c3f6 commit 950d40d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package main

import (
"crypto/tls"
"log"
"net/http"
"time"

"github.com/dmwm/auth-proxy-server/auth"
Expand Down Expand Up @@ -104,6 +106,19 @@ func Server(config string, port, metricsPort int, logFile string, useX509, scito
logging.CollectorPassword = Config.CollectorPassword
logging.CollectorSize = Config.CollectorSize
logging.CollectorVerbose = Config.CollectorVerbose
httpClient := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
RootCAs: _rootCAs,
},
},
}
logging.LogCollector = logging.NewCollector(
Config.CollectorSize,
Config.CollectorURL,
Config.CollectorLogin,
Config.CollectorPassword,
httpClient)

Check failure on line 121 in server.go

View workflow job for this annotation

GitHub Actions / build

too many arguments in call to logging.NewCollector

// start our servers
if useX509 {
Expand Down

0 comments on commit 950d40d

Please sign in to comment.