mirror of https://github.com/zulip/zulip.git
katex: Default the server on.
The memory costs are low (~60MB), and likely worth the stability.
This commit is contained in:
parent
a73b8a34d9
commit
bf9539386a
|
@ -193,15 +193,15 @@ Defaults to 14 days.
|
||||||
|
|
||||||
#### `katex_server`
|
#### `katex_server`
|
||||||
|
|
||||||
Set to a true value to run a separate service for [rendering math with
|
Set to a false value to disable the separate service for [rendering math with
|
||||||
LaTeX](https://zulip.com/help/latex). This is not necessary except on servers
|
LaTeX](https://zulip.com/help/latex). Disabling this service will save a small
|
||||||
with users who send several math blocks in a single message; it will address
|
amount of memory, at the cost of making math blocks significantly slower to
|
||||||
issues with such messages occasionally failing to send, at cost of a small
|
render, to the point that using dozens of them in a single message may cause
|
||||||
amount of increased memory usage.
|
the message to fail to send.
|
||||||
|
|
||||||
#### `katex_server_port`
|
#### `katex_server_port`
|
||||||
|
|
||||||
Set to the port number for the KaTeX server, if enabled; defaults to port 9700.
|
Set to the port number for the KaTeX server; defaults to port 9700.
|
||||||
|
|
||||||
### `[postfix]`
|
### `[postfix]`
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ class zulip::app_frontend_base {
|
||||||
include zulip::smokescreen
|
include zulip::smokescreen
|
||||||
}
|
}
|
||||||
|
|
||||||
$katex_server = zulipconf('application_server', 'katex_server', false)
|
$katex_server = zulipconf('application_server', 'katex_server', true)
|
||||||
$katex_server_port = zulipconf('application_server', 'katex_server_port', '9700')
|
$katex_server_port = zulipconf('application_server', 'katex_server_port', '9700')
|
||||||
|
|
||||||
if $proxy_host != '' and $proxy_port != '' {
|
if $proxy_host != '' and $proxy_port != '' {
|
||||||
|
|
|
@ -522,7 +522,7 @@ CAMO_KEY = get_secret("camo_key") if CAMO_URI != "" else None
|
||||||
# KATEX SERVER SETTINGS
|
# KATEX SERVER SETTINGS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
KATEX_SERVER = get_config("application_server", "katex_server", False)
|
KATEX_SERVER = get_config("application_server", "katex_server", True)
|
||||||
KATEX_SERVER_PORT = get_config("application_server", "katex_server_port", "9700")
|
KATEX_SERVER_PORT = get_config("application_server", "katex_server_port", "9700")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -275,3 +275,5 @@ ALLOW_GROUP_VALUED_SETTINGS = True
|
||||||
# This allows tests to not worry about the special behavior during the grace period.
|
# This allows tests to not worry about the special behavior during the grace period.
|
||||||
# Otherwise they would have to do lots of mocking of the timer to work around this.
|
# Otherwise they would have to do lots of mocking of the timer to work around this.
|
||||||
RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS = 0
|
RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS = 0
|
||||||
|
|
||||||
|
KATEX_SERVER = False
|
||||||
|
|
Loading…
Reference in New Issue