settings: Disable KaTeX server in development.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-07-17 17:32:27 -07:00 committed by Tim Abbott
parent 4a93149435
commit 7b8fb017c3
3 changed files with 3 additions and 8 deletions

View File

@ -586,14 +586,6 @@ INTERNAL_BOT_DOMAIN = "zulip.com"
# This needs to be synced with the Camo installation # This needs to be synced with the Camo installation
CAMO_KEY = get_secret("camo_key") if CAMO_URI != "" else None 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 # STATIC CONTENT AND MINIFICATION SETTINGS
######################################################################## ########################################################################

View File

@ -189,6 +189,8 @@ BOT_CONFIG_SIZE_LIMIT = 10000
# External service configuration # External service configuration
CAMO_URI = "" 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_LOCATION = "127.0.0.1:11211"
MEMCACHED_USERNAME = None if get_secret("memcached_password") is None else "zulip@localhost" MEMCACHED_USERNAME = None if get_secret("memcached_password") is None else "zulip@localhost"
RABBITMQ_HOST = "127.0.0.1" RABBITMQ_HOST = "127.0.0.1"

View File

@ -79,6 +79,7 @@ STAFF_SUBDOMAIN = "zulip"
EXTRA_INSTALLED_APPS = ["zilencer", "analytics", "corporate"] EXTRA_INSTALLED_APPS = ["zilencer", "analytics", "corporate"]
# Disable Camo in development # Disable Camo in development
CAMO_URI = "" CAMO_URI = ""
KATEX_SERVER = False
TORNADO_PORTS = [9993] TORNADO_PORTS = [9993]