mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
828f565290
This is going to be the v4. Expected improvements: - More reliable due to static typing. - Bump of performance. - Improvement of logging. - Authelia can be shipped as a single binary. - Will likely work on ARM architecture.
27 lines
859 B
Go
27 lines
859 B
Go
package schema
|
|
|
|
// RedisSessionConfiguration represents the configuration related to redis session store.
|
|
type RedisSessionConfiguration struct {
|
|
Host string `yaml:"host"`
|
|
Port int64 `yaml:"port"`
|
|
Password string `yaml:"password"`
|
|
}
|
|
|
|
// SessionConfiguration represents the configuration related to user sessions.
|
|
type SessionConfiguration struct {
|
|
Name string `yaml:"name"`
|
|
Secret string `yaml:"secret"`
|
|
// Expiration in seconds
|
|
Expiration int64 `yaml:"expiration"`
|
|
// Inactivity in seconds
|
|
Inactivity int64 `yaml:"inactivity"`
|
|
Domain string `yaml:"domain"`
|
|
Redis *RedisSessionConfiguration `yaml:"redis"`
|
|
}
|
|
|
|
// DefaultSessionConfiguration is the default session configuration
|
|
var DefaultSessionConfiguration = SessionConfiguration{
|
|
Name: "authelia_session",
|
|
Expiration: 3600,
|
|
}
|