Merge branch 'master' into master
This commit is contained in:
10
README.md
10
README.md
@@ -371,12 +371,10 @@ smtp_port: $SMTP_PORT
|
|||||||
configuration: python:mailman.config.exim4
|
configuration: python:mailman.config.exim4
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To use [Postfix][12], edit the `main.cf` configuration file, which is typically
|
||||||
To use [Postfix][12], it should be set up to relay emails from
|
at `/etc/postfix/main.cf` on Debian-based operating systems. Add `172.19.199.2`
|
||||||
`172.19.199.2` and `172.19.199.3`. The mailman specific configuration is
|
and `172.19.199.3` to `mynetworks` so it will relay emails from the containers
|
||||||
mentioned below which you should add to your `main.cf` configuration file,
|
and add the following configuration lines:
|
||||||
which is typically at `/etc/postfix/main.cf` on Debian-based operating
|
|
||||||
systems:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
# main.cf
|
# main.cf
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Configuration
|
|||||||
|
|
||||||
These are the variables that you MUST change before deploying:
|
These are the variables that you MUST change before deploying:
|
||||||
|
|
||||||
- `HYPERKITT_API_KEY`: Hyperkitty's API Key, should be set to the same value as
|
- `HYPERKITTY_API_KEY`: Hyperkitty's API Key, should be set to the same value as
|
||||||
set for the mailman-core.
|
set for the mailman-core.
|
||||||
|
|
||||||
- `DATABASE_URL`: URL of the type
|
- `DATABASE_URL`: URL of the type
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ RUN set -ex \
|
|||||||
postgresql-dev mariadb-dev \
|
postgresql-dev mariadb-dev \
|
||||||
&& apk add --no-cache --virtual .mailman-rundeps bash \
|
&& apk add --no-cache --virtual .mailman-rundeps bash \
|
||||||
postgresql-client mysql-client py-mysqldb curl mailcap \
|
postgresql-client mysql-client py-mysqldb curl mailcap \
|
||||||
&& pip install -U Django>=1.11 pip \
|
&& pip install -U Django==2.1.5 pip \
|
||||||
&& pip install postorius==1.2.0a1 \
|
&& pip install postorius==1.2.3 \
|
||||||
uwsgi \
|
uwsgi \
|
||||||
psycopg2 \
|
psycopg2 \
|
||||||
dj-database-url \
|
dj-database-url \
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ RUN set -ex \
|
|||||||
psycopg2 \
|
psycopg2 \
|
||||||
dj-database-url \
|
dj-database-url \
|
||||||
mysqlclient \
|
mysqlclient \
|
||||||
&& pip install -U django>=1.11\
|
&& pip install -U django==2.1.5\
|
||||||
&& pip install -U git+https://gitlab.com/mailman/django-mailman3@${DJ_MM3_REF} \
|
&& pip install -U git+https://gitlab.com/mailman/django-mailman3@${DJ_MM3_REF} \
|
||||||
&& apk del .build-deps \
|
&& apk del .build-deps \
|
||||||
&& addgroup -S mailman \
|
&& addgroup -S mailman \
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ urlpatterns = [
|
|||||||
url(r'', include('django_mailman3.urls')),
|
url(r'', include('django_mailman3.urls')),
|
||||||
url(r'^accounts/', include('allauth.urls')),
|
url(r'^accounts/', include('allauth.urls')),
|
||||||
# Django admin
|
# Django admin
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', admin.site.urls),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -21,28 +21,8 @@ threads = 2
|
|||||||
uid = mailman
|
uid = mailman
|
||||||
gid = mailman
|
gid = mailman
|
||||||
|
|
||||||
# Setup the django_q related worker processes.
|
|
||||||
attach-daemon = ./manage.py qcluster
|
|
||||||
|
|
||||||
# Setup hyperkitty's cron jobs.
|
|
||||||
unique-cron = -1 -1 -1 -1 -1 ./manage.py runjobs minutely
|
|
||||||
unique-cron = -15 -1 -1 -1 -1 ./manage.py runjobs quarter_hourly
|
|
||||||
unique-cron = 0 -1 -1 -1 -1 ./manage.py runjobs hourly
|
|
||||||
unique-cron = 0 0 -1 -1 -1 ./manage.py runjobs daily
|
|
||||||
unique-cron = 0 0 1 -1 -1 ./manage.py runjobs monthly
|
|
||||||
unique-cron = 0 0 -1 -1 0 ./manage.py runjobs weekly
|
|
||||||
unique-cron = 0 0 1 1 -1 ./manage.py runjobs yearly
|
|
||||||
|
|
||||||
# Setup the request log.
|
# Setup the request log.
|
||||||
req-logger = file:/opt/mailman-web-data/logs/uwsgi.log
|
req-logger = file:/opt/mailman-web-data/logs/uwsgi.log
|
||||||
|
|
||||||
# Log cron seperately.
|
|
||||||
logger = cron file:/opt/mailman-web-data/logs/uwsgi-cron.log
|
|
||||||
log-route = cron uwsgi-cron
|
|
||||||
|
|
||||||
# Log qcluster commands seperately.
|
|
||||||
logger = qcluster file:/opt/mailman-web-data/logs/uwsgi-qcluster.log
|
|
||||||
log-route = qcluster uwsgi-daemons
|
|
||||||
|
|
||||||
# Last log and it logs the rest of the stuff.
|
# Last log and it logs the rest of the stuff.
|
||||||
logger = file:/opt/mailman-web-data/logs/uwsgi-error.log
|
logger = file:/opt/mailman-web-data/logs/uwsgi-error.log
|
||||||
|
|||||||
Reference in New Issue
Block a user