auth: Customize simpleTokenTTL settings.

see https://github.com/etcd-io/etcd/issues/11978 for more detail.
This commit is contained in:
cfc4n
2020-06-11 17:15:42 +08:00
committed by CFC4N
parent 31e49a4df3
commit 4488595e05
10 changed files with 48 additions and 25 deletions

View File

@@ -192,6 +192,7 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) {
ClientCertAuthEnabled: cfg.ClientTLSInfo.ClientCertAuth,
AuthToken: cfg.AuthToken,
BcryptCost: cfg.BcryptCost,
TokenTTL: cfg.AuthTokenTTL,
CORS: cfg.CORS,
HostWhitelist: cfg.HostWhitelist,
InitialCorruptCheck: cfg.ExperimentalInitialCorruptCheck,