41 Commits

Author SHA1 Message Date
cmro
d0a8078582 Fix: handle boolean values in environment variables 2025-01-08 18:02:08 +01:00
am97
3cf6e5d18d Avoid Django 3.2+ warning (#686) 2024-02-25 11:10:38 +05:30
mmurphy
1fc0716564 prevent mailman-web dns lookup from throwing (#681) 2024-01-22 09:29:28 +05:30
Abhilash Raj
2708b63fbd fix: Add humaize for django-allauth 2023-12-30 04:11:32 +00:00
Abhilash Raj
022cb48778 Fix: Add support for new version of django-allauth (#655)
* Fix: Add support for new version of django-allauth

* Use full path for manage.py script
2023-10-02 08:58:36 -07:00
Raphael
57a2f5456a Fix DJANGO_ALLOWED_HOSTS parsing
Closes #637.
2023-06-26 12:47:10 +02:00
Raphael
c097913a80 Use TZ in settings.py 2023-06-19 11:26:05 +02:00
Martin
6fb158d062 feat: support smtp via ssl 2021-07-29 18:27:55 +02:00
Danil Smirnov
2e9a101a1b Parametrizing Django diskcache path and size (#474)
* Parametrizing Django diskcache path and size

* Cache directory permissions fix
2021-07-18 10:27:36 -07:00
Abhilash Raj
496ee0c057 Add support for CACHES. (#467)
Also, bump Django to 3.1.
2021-05-22 09:42:05 -07:00
Stefan Gangefors
47f70d73bd Easy override for social logins (#446)
Add MAILMAN_WEB_SOCIAL_AUTH for social logins

The `MAILMAN_WEB_SOCIAL_AUTH` list contains a default set of social
login provides. This was previously included in `INSTALLED_APPS`.

Separating it to it's own list makes it easier to disable or otherwise
override which social login providers are enabled without the need to
modify `INSTALLED_APPS`.

Older installations where `INSTALLED_APPS` were overridden continues to
work. The `MAILMAN_WEB_SOCIAL_AUTH` is ignored for those and
`INSTALLED_APPS` is used as is.
2021-03-20 10:28:54 -07:00
pini-gh
c10aa6fce4 Get rid of hard coded IPs (#441)
Replace them with:
* containers' hostnames
* gateway's IP address for default SMTP_HOST
* Core: when SMTP_HOST undef, echo the default value
* docker-compose: add port mapping
* docker-compose: drop network driver conf
* Exim macro: use localhost as LMTP host
* Update README.md
* docker-compose: Limit port mapping to loopback
* Update other docker-compose example files
2021-03-15 10:47:13 -07:00
Abhilash Raj
6c70f1b5d7 Merge branch 'master' into web-settings-py-cleanup 2021-02-28 10:33:22 -08:00
Danil Smirnov
484e37f447 Removing redundant code 2021-02-28 20:25:45 +02:00
Danil Smirnov
6cdc0d5b0e Adding retry parameter to Django-Q configuration 2021-02-28 12:33:52 +02:00
Abhilash Raj
839d42f3d3 Revert "Update fulltext search engine to Xapian from Whoosh. (#364)" (#376)
This reverts commit 508da12771.
2020-05-15 18:28:56 -07:00
Abhilash Raj
508da12771 Update fulltext search engine to Xapian from Whoosh. (#364) 2020-01-18 10:04:40 -08:00
Joren Vrancken
5251eff047 Make MAILMAN_ARCHIVER_FROM a tuple (#336) 2019-07-28 12:07:59 -07:00
Simon Hötten
4108fc9dc9 allow chaning of smtp credentials via env vars 2019-04-28 19:25:36 +02:00
Abhilash Raj
c5d84bfeab Use alpine images instead of Python. (#290)
* Use alpine images instead of Python.

* Minor fix to use python3 -m pip

* Fix settings for paintstore.
2019-01-20 16:39:11 -08:00
Abhilash Raj
9f8fd65bb5 Add new settings for Templates. 2018-07-25 23:10:21 -07:00
Abhilash Raj
3f9a89a8b2 Fix test (#249)
* SessionAuthenticationMiddlware should be removed now.

* Force installation of Django-mailman3 from Git for rolling builds.
2018-06-07 19:48:01 -07:00
Abhilash Raj
186bdcef8a Do not try to get the Core's IP automatically
Without a try-except block, trying to get the IP of `mailman-core` fails when mailman-web is made to run standalone.
2018-03-15 15:30:04 -07:00
Abhilash Raj
d26c402617 Fix CI system to work on both Python 2 and 3 (#225)
* Use old style middleware settings for Python 2.

* Make entrypoint python2 and 3 compatible.

* Fix python command to test for mysql server.

* Bettery docker-entrypoint to work with Python 2 & 3

* Add missing braces.
2018-03-09 23:13:57 -08:00
Abhilash Raj
bfefd9fbc3 Update mailman-web to use Python 3 (For rolling releases) (#217)
* Update mailman-web to use Python 3

* Update configuration

* Python 3.6 image.

* Use alpine 3.7

* Use new style middleware

* Use alpine 3.6

* In Python 3, urlparse was renamed to urllib.parse
2018-03-07 23:22:47 -08:00
Abhilash Raj
770bfb7dac Try to auto-detect mailman-core's IP address.
Fixes #133
2017-10-01 02:49:06 -07:00
Abhilash Raj
eca79c9858 Add allowed hosts using environment vars. 2017-10-01 01:35:52 -07:00
Tatsuyuki Ishi
f940024d17 Fix default search path 2017-07-30 01:13:51 +09:00
Tatsuyuki Ishi
a757df8f55 Use sassc for django-compressor 2017-07-28 17:46:45 +09:00
Tatsuyuki Ishi
39fd5c6b25 Remove default value of SECRET_KEY in Django's settings.py (#102)
The default value of SECRET_KEY was hard-coded in the settings.py which would turn out to be used all the time even if people are not forced to change it. So this commit removes that value and instead gets the SECRET_KEY from the environment variable.

Closes #99
2017-07-27 01:40:14 -07:00
Abhilash Raj
43731112e7 Remove Facebook from default social auth provider. 2017-07-20 15:15:26 -07:00
Abhilash Raj
dc491a9d96 Add django_q as dependency and remove commented part in settings. 2017-05-23 15:59:05 -07:00
Abhilash Raj
2833647e06 Core should set hyperkitty url by default to the mailman-web container. 2017-04-21 12:13:19 -07:00
Abhilash Raj
e24bef5d0c MAILMAN_ARCHIVER_FROM should be core's IP not django. 2017-04-10 14:12:07 -07:00
Abhilash Raj
701825c2a3 Fix Database Url check, force mailman to start, remove security settings in
django.

- -z Does not check properly if the DATABASE_URL is defined or not. It evaluates
   to True if it is not set or set to ''

- Remove SECURE_SSL_REDIRECT in the django settings because this deployment is
  meant to behind Nginx which decrypts SSL packets.

- Force mailman to start even with a lock. This _may_ not be the best idea but
  for now if everything is followed according to this guide.
2017-04-08 19:36:39 -07:00
Abhilash Raj
aec4ef4e03 Disable some security options in django settings. 2017-04-07 18:22:43 -07:00
Abhilash Raj
235e076e63 Change all the configuration variables to ENVIRONMENT VARS.
Following 12factor principle for app development, all the configuration
variables for the docker images can now be setup using environment vars.

The default values are set using the run.sh script in both mailman-web
and mailman-core containers.

Mailman-core is now run by "run.sh" which traps SIGTERM and performs
mailman stop for graceful exit of mailman core.
2017-04-07 00:56:04 -07:00
Abhilash Raj
ad1aaff624 Several change to mailman-web image.
- Download source code as zip from gitlab instead of git+https because speed.
- Check if the $DATABASE_URL is not defined, use a default sqlite database.
- Use dj-database-url package to set database in django settings using
  DATABASE_URL environment variable.
- Use UWSGI_LOG_URL as the URL for UWSGI logging and set it to a default value
  if it has not been defined.
2017-04-06 17:06:12 -07:00
Abhilash Raj
92add31f4a Put default configuration in mailman-web and copy only settings_local.py 2017-04-06 13:56:13 -07:00
Abhilash Raj
12e8b04128 Add psycopg2 in mailman-web container.
Copy the settings file from /opt/mailman/web/ in the host system which
is supposed to be mounted at /opt/mailman-web-data/ in the container.
2017-03-29 22:27:06 -07:00
Abhilash Raj
c110bb1d01 Add a docker compose configuration and mailman-web
This commit adds a lot of new code including the mailman's web
frontend. It includes a configuration file which can later be
configured to run required configs.

Also, the docker-compose file spins off the containers, sets up
appropriate volumes and links.
2017-03-29 16:30:25 -07:00