Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Make CAMO_KEY Optional.

Zixuan James Li448253c00955
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index d4494f63c10..d96d1dcfbc4 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -570,9 +570,8 @@ if STATSD_HOST != "":
# CAMO HTTPS CACHE CONFIGURATION
########################################################################
-if CAMO_URI != "":
- # This needs to be synced with the Camo installation
- CAMO_KEY = get_secret("camo_key")
+# This needs to be synced with the Camo installation
+CAMO_KEY = get_secret("camo_key") if CAMO_URI != "" else None
########################################################################
# STATIC CONTENT AND MINIFICATION SETTINGS