feat: Add JWT and Redis configuration to deployment and environment setup
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 50s
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 50s
This commit is contained in:
@@ -18,7 +18,7 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
var c config.Config
|
||||
conf.MustLoad(*configFile, &c)
|
||||
conf.MustLoad(*configFile, &c, conf.UseEnv())
|
||||
|
||||
server := rest.MustNewServer(c.RestConf)
|
||||
defer server.Stop()
|
||||
|
||||
@@ -3,15 +3,15 @@ Host: 0.0.0.0
|
||||
Port: 8888
|
||||
|
||||
Steam:
|
||||
CallbackURL: https://www.cialloo.com/api/authenticator/steam/callback
|
||||
FrontendCallbackURL: https://www.cialloo.com/auth/callback
|
||||
CallbackURL: "${STEAM_CALLBACK_URL}"
|
||||
FrontendCallbackURL: "${STEAM_FRONTEND_CALLBACK_URL}"
|
||||
|
||||
JWT:
|
||||
Secret: your-secret-key-change-in-production
|
||||
Issuer: cialloo-authenticator
|
||||
ExpiresIn: 604800 # 7 days in seconds
|
||||
Secret: "${JWT_SECRET}"
|
||||
Issuer: "${JWT_ISSUER}"
|
||||
ExpiresIn: ${JWT_EXPIRES_IN}
|
||||
|
||||
Redis:
|
||||
Host: redis.production.svc.cluster.local:6379
|
||||
Type: node
|
||||
Pass: ""
|
||||
Host: "${REDIS_HOST}"
|
||||
Type: "${REDIS_TYPE}"
|
||||
Pass: "${REDIS_PASS}"
|
||||
|
||||
Reference in New Issue
Block a user