mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
feat: support for configuring private api key use
This commit is contained in:
@@ -265,6 +265,10 @@ class AppConfig:
|
||||
# WEBUI_AUTH (Required for security)
|
||||
####################################
|
||||
|
||||
ENABLE_API_KEY_AUTH = (
|
||||
os.environ.get("ENABLE_API_KEY_AUTH", "True").lower() == "true"
|
||||
)
|
||||
|
||||
JWT_EXPIRES_IN = PersistentConfig(
|
||||
"JWT_EXPIRES_IN", "auth.jwt_expiry", os.environ.get("JWT_EXPIRES_IN", "-1")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user