mirror of
https://github.com/minio/minio.git
synced 2025-01-27 06:33:18 -05:00
Pass environment variable to control session length to console (#17885)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
parent
c3c8441a1d
commit
328cb0a076
@ -175,6 +175,10 @@ func minioConfigToConsoleFeatures() {
|
|||||||
if value := env.Get(config.EnvBrowserLoginAnimation, "on"); value != "" {
|
if value := env.Get(config.EnvBrowserLoginAnimation, "on"); value != "" {
|
||||||
os.Setenv("CONSOLE_ANIMATED_LOGIN", value)
|
os.Setenv("CONSOLE_ANIMATED_LOGIN", value)
|
||||||
}
|
}
|
||||||
|
// Pass on the session duration environment variable, else we will default to 12 hours
|
||||||
|
if value := env.Get(config.EnvBrowserSessionDuration, ""); value != "" {
|
||||||
|
os.Setenv("CONSOLE_STS_DURATION", value)
|
||||||
|
}
|
||||||
|
|
||||||
os.Setenv("CONSOLE_MINIO_REGION", globalSite.Region)
|
os.Setenv("CONSOLE_MINIO_REGION", globalSite.Region)
|
||||||
os.Setenv("CONSOLE_CERT_PASSWD", env.Get("MINIO_CERT_PASSWD", ""))
|
os.Setenv("CONSOLE_CERT_PASSWD", env.Get("MINIO_CERT_PASSWD", ""))
|
||||||
|
@ -65,6 +65,7 @@ const (
|
|||||||
EnvBrowserRedirectURL = "MINIO_BROWSER_REDIRECT_URL"
|
EnvBrowserRedirectURL = "MINIO_BROWSER_REDIRECT_URL"
|
||||||
EnvRootDiskThresholdSize = "MINIO_ROOTDISK_THRESHOLD_SIZE"
|
EnvRootDiskThresholdSize = "MINIO_ROOTDISK_THRESHOLD_SIZE"
|
||||||
EnvBrowserLoginAnimation = "MINIO_BROWSER_LOGIN_ANIMATION"
|
EnvBrowserLoginAnimation = "MINIO_BROWSER_LOGIN_ANIMATION"
|
||||||
|
EnvBrowserSessionDuration = "MINIO_BROWSER_SESSION_DURATION"
|
||||||
|
|
||||||
EnvUpdate = "MINIO_UPDATE"
|
EnvUpdate = "MINIO_UPDATE"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user