Commit Graph

249 Commits

Author SHA1 Message Date
Flávio Siqueira Prado
ce072f459f settings: Configure LDAP group settings as arrays.
Currently LDAP group settings are being treat as string, they should be treated as array
so we could configure it correctly while executing on `docker` or `kubernetes`.
2021-05-05 10:59:48 -07:00
Jennifer Hwang
43438bf84d Add plumbing for new queue_workers_multiprocess setting. 2021-04-25 08:32:18 -07:00
ppenguin
cd02e6612d entrypoint: Add postgres port to entrypoint config script.
This is required to use docker-zulip with an existing postgres instance on a port other than 5432.

Co-authored-by: Jeroen Versteeg <jv@1nnovat.io>
2020-11-02 17:40:00 -08:00
Michal Krejčí
35d23136c2 Added REALM_HOSTS to array filter in entrypoint.sh.
Fixes #258.
2020-06-11 21:06:06 -07:00
Cybernick
cf8749c9c6 Added AUTH_LDAP_REVERSE_EMAIL_SEARCH as array to match #11715 issue changes 2019-10-30 16:09:08 -07:00
Anders Kaseorg
520f81ff30 entrypoint.sh: Fix ShellCheck warning introduced by #199.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-06-19 15:47:23 -07:00
Philip Arndt
611a7b0631 backups: Complain if legacy backups directory doesn't exist.
Currently this conditional results in `exit 1` when the backups
directory does exist.  This change flips the logic to complain
when there are no backup files which, based on the error message,
is the intended result.
2019-06-03 17:30:30 -07:00
Anders Kaseorg
c82b02aa16 entrypoint: Update for incompatible change to setup-certbot usage
https://github.com/zulip/zulip/pull/10699

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-03-11 17:48:34 -07:00
Anders Kaseorg
292cdcbfba Persist /etc/letsencrypt to the zulip data volume.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-02-24 11:35:07 -08:00
Anders Kaseorg
2acd34b212 Add trailing newline to /etc/cron.d/autobackup.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-12-12 17:34:24 -08:00
Anders Kaseorg
fca0be8338 entrypoint.sh: Shell script cleanup; fix ShellCheck warnings.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-12-11 17:52:59 -08:00
Anders Kaseorg
b471a8271b Fix /etc/cron.d/autobackup.
The previous code wrote

    MAILTO=\n30 3 * * * cd /;/entrypoint.sh app:backup

(with a literal backslash n).

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-12-11 17:26:54 -08:00
Anders Kaseorg
c8f5aa264d Run generate_secrets.py unconditionally.
We may need to populate newly added secrets when upgrading Zulip.

Fixes #163.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-12-04 13:21:51 -08:00
Tim Abbott
a1ff3938ca entrypoint: Initialize settings.py files with the template.
This fixes a bug introduced in
62bf74190b, where the template
settings.py content wasn't being put in place properly.

The previous model meant that if the user exported the settings.py
file to the data directory, we'd end up appending various versions of
the users' configuration to it over time.

While those users should have been using the MANUAL_CONFIGURATION
setting, this at least is a much cleaner model for managing configuration.

Fixes #130.
Fixes #153.
Fixes #155.
2018-08-31 11:45:23 -07:00
Tim Abbott
f874136af1 entrypoint: Remove references to ZULIP_AUTO_GENERATE_CERTS. 2018-08-23 13:30:42 -07:00
Tim Abbott
1190873d0f entrypoint: Remove unnecessary directory creation logging. 2018-08-23 13:16:56 -07:00
Tim Abbott
f61b48b96f entrypoint: Remove obsolete RabbitMQ configuration.
The ignore option was removed a long time ago, and the settings style
variable for RabbitMQ is very old backwards-compatibility code that is
no longer needed.
2018-08-23 13:09:28 -07:00
Tim Abbott
78480d4de5 secrets: Use crudini to edit secrets file.
Using an actual tool designed to do this is a lot more robust and
fixes some nasty escaping issues involving secrets containing `~` that
were reported in #143.
2018-08-23 12:53:21 -07:00
Tim Abbott
081e64c46e entrypoint: Use extended globbing for integer detection.
This fixes #150, and should eliminate the possibility for future bugs
in the same vein.

I still want to eliminate this whole type-detection system, but that's
for future work.
2018-08-13 15:40:05 -07:00
jeaye
3b5d63b9ba setup: Add certbot support.
The task is to generate a self-signed cert so Zulip can be started, then
to wait until Zulip is up before using certbot to generate new certs.
Zulip needs to be up so it can meet certbot's challenge. Using a deploy
hook, certs are persisted in the data directory. The same applies to
renewal.

Tweaked by tabbott mostly to edit comments remove an unnecessary
setting before merging.

Fixes #120.
2018-07-23 22:29:10 -07:00
Sampriti Panda
d3c32ab0c1 Remove setup_files/ and related code from docker-compose.
This removes the fork of the core Zulip nginx configuration file that
we were maintaining in the docker-zulip project; doing so improves the
maintainability of this project for the future, since we don't need to
check on every Zulip upgrade whether we've made any changes to the
`nginx` package in zulip/zulip.

The only feature we were using that for was the DISABLE_HTTPS setting
in docker-zulip, and it's now possible to do that by editing
zulip.conf instead.

Fixes #114.
2018-07-10 12:22:41 +05:30
Sampriti Panda
de7b59b352 entrypoint: Add call to zulip-puppet-apply for nginx config.
First, we stop deleting the `puppet` directory, which is important for
being able to run `zulip-puppet-apply` inside the container (super
useful for debugging).

Second, we call this inside the code block for the `nginx` option, in
order to support the `DISABLE_HTTPS` option working without any copied
nginx configuration code in docker-zulip.

See #137 for how we could optimize this away.
2018-07-10 12:20:24 +05:30
Giora Guttsait
283c23fd0b Add AUTH_LDAP_CONNECTION_OPTIONS and organize conditions
fixes #127
2018-07-01 02:24:11 -07:00
Tim Abbott
fad2cf528b entrypoint: Fix writing to settings.py with MANUAL_CONFIGURATION.
The database configuration should not have been running in this
configuration model.
2018-05-31 09:14:26 -07:00
Tim Abbott
2e0d92f6b2 sample configs: Remove some obsolete settings.
These former settings no longer do anything in Zulip.
2018-05-27 17:02:57 -07:00
Tim Abbott
2fe9c43120 entrypoint: Fix typo in path to self-signed cert script. 2018-05-27 17:02:31 -07:00
Tim Abbott
1a1d199d7a entrypoint: Remove useless database options.
These didn't do anything.
2018-05-21 09:37:16 -07:00
Tim Abbott
a4428ce28e postgres: Fix configuration for getting postgres password.
This fixes a regression introduced in 87f6030726.
2018-05-21 09:35:02 -07:00
Tim Abbott
e2243b7707 Rewrite SSL certificate generation to be simpler.
This also adds a hook for where we could eventually add certbot
support.

Fixes #104.
2018-05-21 09:25:39 -07:00
Jason Michalski
906abd4839 Remove empty if block in entrypoint.sh. 2018-05-17 13:19:57 -07:00
Jason Michalski
a97d036a27 Remove ZPROJECT_SETTINGS from entrypoint.sh.
The ZPROJECT_SETTINGS file is part of the Zulip distribution and should
not be edited by administrators instead customizations should be made to
the files in /etc/zulip.
2018-05-17 12:51:58 -07:00
Jason Michalski
0f07e4c97e Remove custom RabbitMQ bootstrapping
The rabbitmq image has support for creating a user and granting the
permissions Zulip requires. This makes the bootstrapRabbitMQ step which
runs in the zulip container redundant so we can remove it. This script
was also the only reverse dependency of rabbitmqctl so rabbitmq-server
can be removed as well.
2018-05-16 15:08:08 -07:00
Jason Michakski
87f6030726 Use zulip/zulip-postgresql for the database
With this change the zulip specific database initialization moves out
of the zulip container and into the database container.
2018-05-16 14:38:39 -07:00
Tully Rankin
7eb93bd263 entrypoint: Fix IP address getting set as integer type instead of string.
The logic in entrypoint.sh was incorrectly detecting IP addresses as
integer type. This causes a syntax error as the IP address gets set in
the production settings file without quotes.
2018-05-15 14:19:58 -07:00
Alexander Trost
08146d4055 Merge pull request #99 from Exocortex/resurrect-DISABLE_HTTPS
resurrect DISABLE_HTTPS option
2018-04-23 20:54:37 +02:00
Bryan Larsen
0a5522f64d resurrect DISABLE_HTTPS option
There used to be a DISABLE_HTTPS setting.   I'm not sure why it was removed, but I need it so I can use Zulip behind a Kubernetes Ingress without causing an infinite redirect.
2018-04-20 18:16:00 +00:00
Bryan Larsen
bf319d5702 allow EMAIL_HOST_USER and EMAIL_HOST_PASSWORD to start with a number 2018-04-20 17:59:19 +00:00
Alexander Trost
d8c08751ab Removed createZulipAdmin script 2017-11-08 12:14:24 +01:00
Alexander Trost
3347412847 Update to Ubuntu Xenial 2017-11-01 22:48:50 +01:00
Alexander Trost
c58f94789c Renamed the entrypoint 2017-04-17 18:26:51 +02:00
Alexander Trost
d3ae865088 Renamed the entrypoint.sh to docker-entrypoint.sh
(To fit in for the official zulip/zulip project)
2016-04-24 10:53:40 +02:00
Alexander Trost
ef6c2242db This fixes a critical bug with the linking of the /etc/zulip folder 2016-04-23 10:51:35 +02:00
Alexander Trost
b3f5727c66 Fixed typo in the secretsConfiguratioFixed typo in the secretsConfigurationn 2016-04-23 10:37:55 +02:00
Alexander Trost
ef8bab71de Added all files from my pr + the modified puppet manifests 2016-03-26 14:14:15 +01:00
Alexander Trost
b3ab5016be Added ZULIP_BRANCH 2016-03-25 12:52:52 +01:00
Alexander Trost
f0e943bf16 Use 1.3.10 version tag 2016-03-25 12:07:32 +01:00
Alexander Trost
5513c80885 Fixed the app:managepy function 2016-03-25 10:03:06 +01:00
Alexander Trost
59cfaedf0d Use the existing configureCerts function 2016-03-21 09:22:43 +01:00
Alexander Trost
3ecd80afbc zulipConfiguration: Insert all vars as a "string" by default 2016-03-15 16:36:53 +01:00
Alexander Trost
6664a31d61 Fixed the LDAP file switch 2016-03-15 16:00:07 +01:00