feat: add WEBUI_AUTH_TRUSTED_EMAIL_HEADER for authenticating users by a trusted header

This is very yolo code, use at your own risk
This commit is contained in:
Jun Siang Cheah authored and Jun Siang Cheah committed 2024-03-27 09:28:03 +00:00
1 parent 7d45d2762f
commit 29f13f34d3
8 files changed
+58 -13

No files matched your search

+2
View File
@@ -348,6 +348,8 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.100")
####################################
WEBUI_AUTH = True
WEBUI_AUTH_TRUSTED_EMAIL_HEADER = os.environ.get(
"WEBUI_AUTH_TRUSTED_EMAIL_HEADER", None)
####################################
# WEBUI_SECRET_KEY