outposts/proxy: better Redis error message (#8044)
* outposts/proxy: better Redis error message Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * Update internal/outpost/proxyv2/application/session.go Co-authored-by: Jens L. <jens@goauthentik.io> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
parent
1a6077c074
commit
d54b410429
|
@ -13,6 +13,7 @@ import (
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
"github.com/redis/go-redis/v9"
|
"github.com/redis/go-redis/v9"
|
||||||
|
|
||||||
"goauthentik.io/api/v3"
|
"goauthentik.io/api/v3"
|
||||||
"goauthentik.io/internal/config"
|
"goauthentik.io/internal/config"
|
||||||
"goauthentik.io/internal/outpost/proxyv2/codecs"
|
"goauthentik.io/internal/outpost/proxyv2/codecs"
|
||||||
|
@ -40,7 +41,7 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL)
|
||||||
// New default RedisStore
|
// New default RedisStore
|
||||||
rs, err := redisstore.NewRedisStore(context.Background(), client)
|
rs, err := redisstore.NewRedisStore(context.Background(), client)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
a.log.WithError(err).Panic("failed to connect to redis")
|
||||||
}
|
}
|
||||||
|
|
||||||
rs.KeyPrefix(RedisKeyPrefix)
|
rs.KeyPrefix(RedisKeyPrefix)
|
||||||
|
|
Reference in New Issue