zulip/scripts/lib
K.Kanakhin e3e52e7284 email-mirror: Move postfix email mirror integration to separate script.
This fixes a performance problem where we were previously starting up
a full Django process (~0.7s even on a fast machine) every time a new
email came in, potentially allowing users to accidentally DoS a Zulip
server.  Now, we just post over HTTPS, allowing the existing thread
pool support to do its job.

- Add script wrapper to communicate postfix pipe with django web server
  over HTTP(S). It uses shared_secret authentication mode.
- Add django view to process messages from email mirror server.
- Clean management command `email-mirror`. Left just functional
  for cron email processing.
- Add routes for new tornado view.
- Change pipe script in master process postfix config template
  based on updated script.
- Add tests.

Tweaked by tabbott to adjust the directory and set better defaults.

Fixes #2421.
2017-04-24 21:24:23 -07:00
..
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
check-upstart install: Add clear error message if upstart is installed on Xenial. 2016-11-29 19:16:26 -08:00
create-production-venv create-production-venv: Fix issues with api/ relative path. 2017-03-25 19:49:26 -07:00
email-mirror-postfix email-mirror: Move postfix email mirror integration to separate script. 2017-04-24 21:24:23 -07:00
hash_reqs.py Move hash_reqs.py from tools/ to scripts/lib/. 2016-06-22 18:12:08 +05:30
install prod: Ensure the Zulip version of node is installed. 2017-01-06 16:18:29 -08:00
install-node Move tools/setup/install-node to scripts/setup/. 2017-01-06 16:18:29 -08:00
log-management-command dev: Auto-create log directory in management command. 2016-12-17 17:18:49 -08:00
node_cache.py node_cache: Fix buggy production deployment code. 2016-12-08 10:34:04 -08:00
pythonrc.py Add a new statistics/analytics framework. 2016-10-04 17:18:54 -07:00
queue_workers.py queue_workers: Fix confusing --queue_type argument name. 2017-02-22 00:23:26 -08:00
setup-apt-repo Run apt-get update only if sources.list has changed. 2016-10-19 16:23:21 +05:00
setup_path_on_import.py Use zulip-py3-venv when running on Python 3 2016-11-26 13:20:22 -08:00
setup_venv.py setup_venv: Give up if virtualenv-clone isn't working. 2017-01-09 11:21:42 -08:00
unpack-zulip zulip_tools.py: Move zulip_tools.py in scripts/lib. 2016-08-15 16:44:50 -07:00
upgrade-zulip pep8: Fix E225 pep8 violations. 2016-11-28 15:21:15 -08:00
upgrade-zulip-stage-2 Set umask 022 before starting prod upgrade. 2017-04-19 10:28:06 -07:00
zulip_tools.py Fix several new errors caught by mypy 0.501. 2017-03-03 14:12:52 -08:00