🐛 65 confused about configuring tls (#69)

* 🐛 Fix bug reading LAPIKEY, update exemples

* 🚨 Fix lint
This commit is contained in:
mathieuHa
2022-12-30 11:24:14 +01:00
committed by GitHub
parent aff7c496c2
commit 29878e837c
10 changed files with 131 additions and 12 deletions
+2
View File
@@ -10,6 +10,7 @@ import (
"io"
"net/http"
"net/url"
"strings"
"text/template"
"time"
@@ -79,6 +80,7 @@ func New(ctx context.Context, next http.Handler, config *configuration.Config, n
logger.Error(fmt.Sprintf("New:crowdsecLapiKey fail to get CrowdsecLapiKey and no client certificate setup %s", err.Error()))
return nil, err
}
apiKey = strings.TrimSuffix(apiKey, "\n")
bouncer := &Bouncer{
next: next,