mirror of
https://github.com/zebrajr/ollama-webui.git
synced 2025-12-05 12:20:26 +01:00
enh: lower JWT expiration default value and add warn message
This commit is contained in:
parent
ffad1f1dd1
commit
31f6520ba9
|
|
@ -307,9 +307,15 @@ API_KEY_ALLOWED_ENDPOINTS = PersistentConfig(
|
||||||
|
|
||||||
|
|
||||||
JWT_EXPIRES_IN = PersistentConfig(
|
JWT_EXPIRES_IN = PersistentConfig(
|
||||||
"JWT_EXPIRES_IN", "auth.jwt_expiry", os.environ.get("JWT_EXPIRES_IN", "-1")
|
"JWT_EXPIRES_IN", "auth.jwt_expiry", os.environ.get("JWT_EXPIRES_IN", "4w")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if JWT_EXPIRES_IN.value == "-1":
|
||||||
|
log.warning(
|
||||||
|
"⚠️ SECURITY WARNING: JWT_EXPIRES_IN is set to '-1'\n"
|
||||||
|
" See: https://docs.openwebui.com/getting-started/env-configuration\n"
|
||||||
|
)
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# OAuth config
|
# OAuth config
|
||||||
####################################
|
####################################
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user