mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
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:
committed by
Tim Abbott
parent
9e9bd2456f
commit
3ee69f3da9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user