feat: add ENABLE_COMMUNITY_SHARING

This commit is contained in:
Jun Siang Cheah
2024-05-26 17:10:25 +01:00
parent 6c5f5fe368
commit 1235714914
5 changed files with 28 additions and 16 deletions

View File

@@ -566,6 +566,12 @@ WEBHOOK_URL = PersistentConfig(
ENABLE_ADMIN_EXPORT = os.environ.get("ENABLE_ADMIN_EXPORT", "True").lower() == "true"
ENABLE_COMMUNITY_SHARING = PersistentConfig(
"ENABLE_COMMUNITY_SHARING",
"ui.enable_community_sharing",
os.environ.get("ENABLE_COMMUNITY_SHARING", "True").lower() == "true",
)
####################################
# WEBUI_SECRET_KEY
####################################