mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
Update env.py
This commit is contained in:
parent
66322727e3
commit
f822d89350
1 changed files with 13 additions and 0 deletions
|
|
@ -326,6 +326,19 @@ REDIS_URL = os.environ.get("REDIS_URL", "")
|
||||||
REDIS_SENTINEL_HOSTS = os.environ.get("REDIS_SENTINEL_HOSTS", "")
|
REDIS_SENTINEL_HOSTS = os.environ.get("REDIS_SENTINEL_HOSTS", "")
|
||||||
REDIS_SENTINEL_PORT = os.environ.get("REDIS_SENTINEL_PORT", "26379")
|
REDIS_SENTINEL_PORT = os.environ.get("REDIS_SENTINEL_PORT", "26379")
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# UVICORN WORKERS
|
||||||
|
####################################
|
||||||
|
|
||||||
|
UVICORN_WORKERS = os.environ.get("UVICORN_WORKERS", "1")
|
||||||
|
try:
|
||||||
|
UVICORN_WORKERS = int(UVICORN_WORKERS)
|
||||||
|
if UVICORN_WORKERS < 1:
|
||||||
|
UVICORN_WORKERS = 1
|
||||||
|
except ValueError:
|
||||||
|
UVICORN_WORKERS = 1
|
||||||
|
log.info(f"Invalid UVICORN_WORKERS value, defaulting to {UVICORN_WORKERS}")
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# WEBUI_AUTH (Required for security)
|
# WEBUI_AUTH (Required for security)
|
||||||
####################################
|
####################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue