Browse Source

feat: allow webui name customisation

Timothy J. Baek 1 year ago
parent
commit
8caad59cb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/config.py

+ 1 - 1
backend/config.py

@@ -25,7 +25,7 @@ try:
 except ImportError:
 except ImportError:
     log.warning("dotenv not installed, skipping...")
     log.warning("dotenv not installed, skipping...")
 
 
-WEBUI_NAME = "Open WebUI"
+WEBUI_NAME = os.environ.get("WEBUI_NAME", "Open WebUI")
 WEBUI_FAVICON_URL = "https://openwebui.com/favicon.png"
 WEBUI_FAVICON_URL = "https://openwebui.com/favicon.png"
 shutil.copyfile("../build/favicon.png", "./static/favicon.png")
 shutil.copyfile("../build/favicon.png", "./static/favicon.png")