From 7b8fb017c34dd76b26d88910178fa657ef9e5eea Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 17 Jul 2024 17:32:27 -0700 Subject: [PATCH] settings: Disable KaTeX server in development. Signed-off-by: Anders Kaseorg --- zproject/computed_settings.py | 8 -------- zproject/default_settings.py | 2 ++ zproject/dev_settings.py | 1 + 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index be9114a40b..afd5aae82a 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -586,14 +586,6 @@ INTERNAL_BOT_DOMAIN = "zulip.com" # This needs to be synced with the Camo installation CAMO_KEY = get_secret("camo_key") if CAMO_URI != "" else None -######################################################################## -# KATEX SERVER SETTINGS -######################################################################## - -KATEX_SERVER = get_config("application_server", "katex_server", True) -KATEX_SERVER_PORT = get_config("application_server", "katex_server_port", "9700") - - ######################################################################## # STATIC CONTENT AND MINIFICATION SETTINGS ######################################################################## diff --git a/zproject/default_settings.py b/zproject/default_settings.py index 267bde4531..815f81f9f1 100644 --- a/zproject/default_settings.py +++ b/zproject/default_settings.py @@ -189,6 +189,8 @@ BOT_CONFIG_SIZE_LIMIT = 10000 # External service configuration CAMO_URI = "" +KATEX_SERVER = get_config("application_server", "katex_server", True) +KATEX_SERVER_PORT = get_config("application_server", "katex_server_port", "9700") MEMCACHED_LOCATION = "127.0.0.1:11211" MEMCACHED_USERNAME = None if get_secret("memcached_password") is None else "zulip@localhost" RABBITMQ_HOST = "127.0.0.1" diff --git a/zproject/dev_settings.py b/zproject/dev_settings.py index d92e8773a6..e2b8d3878b 100644 --- a/zproject/dev_settings.py +++ b/zproject/dev_settings.py @@ -79,6 +79,7 @@ STAFF_SUBDOMAIN = "zulip" EXTRA_INSTALLED_APPS = ["zilencer", "analytics", "corporate"] # Disable Camo in development CAMO_URI = "" +KATEX_SERVER = False TORNADO_PORTS = [9993]