thumbnails: Add setting THUMBNAIL_IMAGES.

This setting splits away part of responsibility from THUMBOR_URL.
Now on, this setting will be responsible for controlling whether
we thumbnail images or not by asking bugdown to render image links
to hit our /thumbnail endpoint. This is irrespective of what
THUMBOR_URL is set to though ideally THUMBOR_URL should be set
to point to a running thumbor instance.
This commit is contained in:
Aditya Bansal
2019-01-04 20:52:04 +05:30
committed by Tim Abbott
parent 9e9bd2456f
commit 3ee69f3da9
7 changed files with 14 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ Thumbor is responsible for a few things in Zulip:
Thumbor handles a lot of details for us, varying from signing of
thumbnailing URLs, to caching for DoS prevention.
It is configured via the `THUMBOR_URL` setting in
It is configured via the `THUMBOR_URL` and `THUMBNAIL_IMAGES` settings in
`/etc/zulip/settings.py`; you can host Thumbor on the same machine as
the Zulip server, or a remote server (which is better for isolation,
since security bugs in image-processing libraries have in the past