mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	Update env.py
This commit is contained in:
		
							parent
							
								
									66322727e3
								
							
						
					
					
						commit
						f822d89350
					
				@ -326,6 +326,19 @@ REDIS_URL = os.environ.get("REDIS_URL", "")
 | 
			
		||||
REDIS_SENTINEL_HOSTS = os.environ.get("REDIS_SENTINEL_HOSTS", "")
 | 
			
		||||
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)
 | 
			
		||||
####################################
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user