64 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
Jonathan Rietveld
06e0ed0f00 fix: Typos in comments (#680) 2024-01-06 07:26:56 +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
Clark Boylan
8b289ac152 Update mailman-web/urls.py address regex behavior in new django (#580)
Regexes are not allowed in path() objects with newer django. This syncs
up with the upstream urls.py at:

  https://gitlab.com/mailman/mailman-web/-/blob/master/mailman_web/urls.py

But does not modify the postorious/ vs mailman3/ and hyperkitty/ vs
archives/ paths.
2022-12-14 21:13:55 -08:00
bbcchmc
19507087ad Update uwsgi.ini (#555)
* Update uwsgi.ini

Updated uwsgi from the default to the max setting 65535, this resolves an issue with large http headers that can cause 502 gateway errors when accessing mailman web interface.

* Reduce the size from max to what apache2 supports.

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
2022-10-28 04:35:16 -07:00
Abhilash Raj
208017f9a0 Test dependabot for Dockerfiles & Bump Postgres to 11 (#557)
* Test dependabot for Dockerfiles.

* Also for github actions

* Update dependabot.yml

* Fix urls.py for new versions of Django

* Fix urls.py for postorius.

* Bump dependency on Postgresql.

* Bump dependency on Django

* Add dependency on tzdata.
2022-10-25 23:25:57 -07: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
Danil Smirnov
582ac73f90 Hyperkitty goes multi-process 2021-05-24 08:45:35 +00:00
Abhilash Raj
496ee0c057 Add support for CACHES. (#467)
Also, bump Django to 3.1.
2021-05-22 09:42:05 -07:00
Abhilash Raj
61f167cddf Merge pull request #451 from maxking/release-0.3.12
Use single process for now since Hyperkitty can't handle multiple processes.
2021-03-27 18:24:04 -07:00
Abhilash Raj
d3263859b4 Use single process for now since Hyperkitty can't handle procesess. 2021-03-27 16:48:27 -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
Danil Smirnov
e283b8604c Update uwsgi.ini 2021-01-30 09:49:05 +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
David Galloway
41092d35f9 uWSGI: Run minutely jobs hourly instead
Fixes: https://github.com/maxking/docker-mailman/issues/327

Signed-off-by: David Galloway <dgallowa@redhat.com>
2019-10-03 11:40:40 -04: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
423d9cbf03 Add libffi to all Postorius images. (#320)
* Add libffi to all Postorius images.

* Use Django less than a certain version.

* Fix the version constraint.

* Fix uwsgi configuration by using only processes.
2019-04-13 21:04:42 -07: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
Patrick Georgi
561abf6fee Use standard alpine image as base for mailman-web
This way we can depend on alpine's python3 package which is binary
compatible with the rest of the python packages in the distribution.

This requires spelling out python3 explicitly in several places since
alpine still defaults to python 2 for /usr/bin/python.
2019-01-17 00:20:26 +01: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
536b999161 Fix the admin url configuration. 2018-05-30 21:01:43 -07:00
Abhilash Raj
512f29f0ba Bump Django dependency to the latest available (#243)
* Bump Django dependency to the latest available

Fixes #242

* Use the new django.urls API
2018-05-28 15:50:27 -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
6d79d91142 uWSGI: use string uid/gid 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
Tatsuyuki Ishi
13fac22e20 Add quarter_hourly to cron configuration
It is purely optional as there was no job set to run quarter hourly.
2017-07-25 09:18:53 +09:00
Tatsuyuki Ishi
70b81d64b5 Fix uWSGI cron configuration
The missing daily routines are also added.
2017-07-25 09:08:02 +09:00
Abhilash Raj
43731112e7 Remove Facebook from default social auth provider. 2017-07-20 15:15:26 -07:00
Abhilash Raj
a361b31923 Switch ports for uwsgi and http. 2017-07-18 19:06:41 -07:00
Christian Rose
f6f4d36d64 Merge PR from @chrros95
Several Changes:
- Uwsgi now listens on two sockets 8080 for http protocol and 8000 for uwsgi protocol
- Add a read_timeout in documentation for Nginx configuration 
- Expose 8024 properly in Core image
- Expose 8080 and 8000 both in Web image
- Rearange the commands to get even less number of layers.
- Add SIGINT as stop signal in web because uwsgi needs it shut down gracefully
- Enable threads in default uwsgi configuration

Fix #64, Fix #15
2017-07-13 16:53:22 -07:00
Abhilash Raj
2025f733a9 Add a mailman user and setup loggers. 2017-05-28 17:11:41 -07:00