Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zthumbor: Respect proxy configuration.
Alex Vandiverac6a40e262b0
diff --git a/zthumbor/thumbor_settings.py b/zthumbor/thumbor_settings.pyindex 2cc14e00b52..16a737c68e3 100644--- a/zthumbor/thumbor_settings.py+++ b/zthumbor/thumbor_settings.py@@ -304,13 +304,15 @@ ALLOW_OLD_URLS = False## Defaults to: 'Thumbor/6.1.5'#HTTP_LOADER_DEFAULT_USER_AGENT = 'Thumbor/6.1.5'-## The proxy host needed to load images through-## Defaults to: None-#HTTP_LOADER_PROXY_HOST = None-## The proxy port for the proxy host-## Defaults to: None-#HTTP_LOADER_PROXY_PORT = None+if config_file.has_option("http_proxy", "host") and config_file.has_option("http_proxy", "port"):+ ## The proxy host needed to load images through+ ## Defaults to: None+ HTTP_LOADER_PROXY_HOST = config_file.get("http_proxy", "host")++ ## The proxy port for the proxy host+ ## Defaults to: None+ HTTP_LOADER_PROXY_PORT = int(config_file.get("http_proxy", "port"))## The proxy username for the proxy host## Defaults to: None