zulip/zproject
Aditya Bansal efe8545303 local-uploads: Start running authentication checks on file requests.
From here on we start to authenticate uploaded file request before
serving this files in production. This involves allowing NGINX to
pass on these file requests to Django for authentication and then
serve these files by making use on internal redirect requests having
x-accel-redirect field. The redirection on requests and loading
of x-accel-redirect param is handled by django-sendfile.

NOTE: This commit starts to authenticate these requests for Zulip
servers running platforms either Ubuntu Xenial (16.04) or above.

Fixes: #320 and #291 partially.
2018-02-16 05:06:37 +05:30
..
jinja2 django-2.0: Shift to resolvers from urlresolvers. 2018-01-30 10:53:54 -08:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py zproject: Use Python 3 syntax for typing. 2017-11-27 17:01:18 -08:00
dev_settings.py local-uploads: Start running authentication checks on file requests. 2018-02-16 05:06:37 +05:30
dev_urls.py test_emails: Generate emails instead of hardcoding. 2017-09-26 15:02:47 -07:00
email_backends.py zproject: Use Python 3 syntax for typing. 2017-11-27 17:01:18 -08:00
legacy_urls.py urls: Move the json/fetch_api_key endpoint to be an API-style route. 2018-01-08 13:15:52 -05:00
prod_settings_template.py settings: Try to clarify how AUTH_LDAP_USER_ATTR_MAP works. 2018-02-13 11:18:14 -08:00
settings.py local-uploads: Start running authentication checks on file requests. 2018-02-16 05:06:37 +05:30
slack_importer_test_settings.py slack importer: Use standalone database for running tests. 2018-01-07 09:50:27 -05:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py tests: Add test coverage for uploading avatars to S3UploadBackend. 2017-12-26 09:09:31 -05:00
urls.py errors: Note upstream fix for that Django DisallowedHost bug. 2018-02-15 10:37:29 -08:00
wsgi.py python: Add lint rule banning 'from os.path import'. 2017-09-22 04:55:38 -07:00