fix: boolean print and contrib example file

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig 2025-12-29 21:24:33 +01:00
parent 6ac03bcad6
commit d29b846052
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,9 @@
server:
bindAddress: "0.0.0.0:4180"
cookie:
secret: OQINaROshtE9TcZkNAm-5Zs2Pv3xaWytBmc5W7sPX7w=
secure: false
secret:
value: OQINaROshtE9TcZkNAm-5Zs2Pv3xaWytBmc5W7sPX7w=
insecure: true
providers:
- id: oidc
provider: oidc

View File

@ -180,7 +180,7 @@ func NewOAuthProxy(opts *options.Options, validator func(string) bool) (*OAuthPr
refresh = fmt.Sprintf("after %s", opts.Session.Refresh)
}
logger.Printf("Cookie settings: name:%s insecure(http):%v scriptaccess:%v expiry:%s domains:%s path:%s samesite:%s refresh:%s", opts.Cookie.Name, opts.Cookie.Insecure, opts.Cookie.ScriptAccess, opts.Cookie.Expire, strings.Join(opts.Cookie.Domains, ","), opts.Cookie.Path, opts.Cookie.SameSite, refresh)
logger.Printf("Cookie settings: name:%s insecure(http):%v scriptaccess:%v expiry:%s domains:%s path:%s samesite:%s refresh:%s", opts.Cookie.Name, *opts.Cookie.Insecure, opts.Cookie.ScriptAccess, opts.Cookie.Expire, strings.Join(opts.Cookie.Domains, ","), opts.Cookie.Path, opts.Cookie.SameSite, refresh)
trustedIPs := ip.NewNetSet()
for _, ipStr := range opts.TrustedIPs {