1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Merge branch 'master' into update_roundcube

This commit is contained in:
Alexander Graf 2021-11-07 21:35:53 +01:00 committed by GitHub
commit 423b8a6b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 55 additions and 15 deletions

View File

@ -23,9 +23,11 @@ RUN set -eu \
FROM $DISTRO
COPY --from=balenalib/rpi-alpine:3.14 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
ENV TZ Etc/UTC
# python3 shared with most images
RUN set -eu \
&& apk add --no-cache python3 py3-pip git bash \
&& apk add --no-cache python3 py3-pip git bash tzdata \
&& pip3 install --upgrade pip
RUN mkdir -p /app

View File

@ -72,6 +72,7 @@ DEFAULT_CONFIG = {
'SESSION_LIFETIME': 24,
'SESSION_COOKIE_SECURE': True,
'CREDENTIAL_ROUNDS': 12,
'TZ': 'Etc/UTC',
# Host settings
'HOST_IMAP': 'imap',
'HOST_LMTP': 'imap:2525',

View File

@ -11,9 +11,12 @@ RUN git clone https://github.com/grosjo/fts-xapian.git \
&& make install
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip git bash py3-multidict py3-yarl \
python3 py3-pip git bash py3-multidict py3-yarl tzdata \
&& pip3 install --upgrade pip
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube

View File

@ -1,5 +1,8 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip git bash py3-multidict \
@ -9,7 +12,7 @@ RUN apk add --no-cache \
RUN pip3 install socrate==0.2.0
# Image specific layers under this line
RUN apk add --no-cache certbot nginx nginx-mod-mail openssl curl \
RUN apk add --no-cache certbot nginx nginx-mod-mail openssl curl tzdata \
&& pip3 install watchdog
COPY conf /conf

View File

@ -1,8 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip git bash py3-multidict py3-yarl \
python3 py3-pip git bash py3-multidict py3-yarl tzdata \
&& pip3 install --upgrade pip
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube

View File

@ -1,8 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip git bash py3-multidict \
python3 py3-pip git bash py3-multidict tzdata \
&& pip3 install --upgrade pip
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube

View File

@ -194,6 +194,10 @@ The ``LETSENCRYPT_SHORTCHAIN`` (default: False) setting controls whether we send
The ``REAL_IP_HEADER`` (default: unset) and ``REAL_IP_FROM`` (default: unset) settings controls whether HTTP headers such as ``X-Forwarded-For`` or ``X-Real-IP`` should be trusted. The former should be the name of the HTTP header to extract the client IP address from and the later a comma separated list of IP addresses designing which proxies to trust. If you are using Mailu behind a reverse proxy, you should set both. Setting the former without the later introduces a security vulnerability allowing a potential attacker to spoof his source address.
The ``TZ`` sets the timezone Mailu will use. The timezone naming convention usually uses a ``Region/City`` format. See `TZ database name`_ for a list of valid timezones This defaults to ``Etc/UTC``. Warning: if you are observing different timestamps in your log files you should change your hosts timezone to UTC instead of changing TZ to your local timezone. Using UTC allows easy log correlation with remote MTAs.
.. _`TZ database name`: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Antivirus settings
------------------

View File

@ -1,8 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip bash \
python3 py3-pip bash tzdata \
&& pip3 install --upgrade pip
# Image specific layers under this line
RUN apk add --no-cache clamav rsyslog wget clamav-libunrar

View File

@ -1,9 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip bash \
python3 py3-pip bash tzdata \
&& pip3 install --upgrade pip
# Image specific layers under this line

View File

@ -1,8 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip bash py3-multidict \
python3 py3-pip bash py3-multidict tzdata \
&& pip3 install --upgrade pip
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube

View File

@ -1,9 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip bash \
python3 py3-pip bash tzdata \
&& pip3 install --upgrade pip
# Image specific layers under this line

View File

@ -1,6 +1,8 @@
FROM ldez/traefik-certs-dumper
RUN apk --no-cache add inotify-tools util-linux bash
ENV TZ Etc/UTC
RUN apk --no-cache add inotify-tools util-linux bash tzdata
COPY run.sh /

View File

@ -1,8 +1,11 @@
ARG DISTRO=alpine:3.14.2
FROM $DISTRO
ENV TZ Etc/UTC
# python3 shared with most images
RUN apk add --no-cache \
python3 py3-pip git bash py3-multidict \
python3 py3-pip git bash py3-multidict tzdata \
&& pip3 install --upgrade pip
# Shared layer between nginx, dovecot, postfix, postgresql, rspamd, unbound, rainloop, roundcube

View File

@ -170,6 +170,9 @@ REJECT_UNLISTED_RECIPIENT={{ reject_unlisted_recipient }}
# Log level threshold in start.py (value: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET)
LOG_LEVEL=WARNING
# Timezone for the Mailu containers. See this link for all possible values https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=Etc/UTC
###################################
# Database settings
###################################

View File

@ -0,0 +1 @@
Add support for timezones

View File

@ -4,9 +4,11 @@ ARG ARCH=""
FROM ${ARCH}alpine:3.14
ONBUILD COPY --from=balenalib/rpi-alpine:3.14 /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static
ENV TZ Etc/UTC
# Shared later between dovecot postfix nginx rspamd rainloop and roundloop
RUN apk add --no-cache \
python3 py3-pip \
python3 py3-pip tzdata \
&& pip3 install socrate==0.2.0
# https://www.rainloop.net/docs/system-requirements/

View File

@ -8,6 +8,8 @@ FROM ${ARCH}php:8.0-apache as build_other
FROM build_${QEMU}
ENV TZ Etc/UTC
RUN set -eu \
&& apt update \
&& echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
@ -39,8 +41,6 @@ ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1
ENV CARDDAV_URL https://github.com/mstilkerich/rcmcarddav/releases/download/v4.2.2/carddav-v4.2.2.tar.gz
ENV TZ Etc/UTC
RUN set -eu \
&& rm -rf /var/www/html/ \
&& cd /var/www \

View File

@ -1,4 +1,4 @@
expose_php=Off
date.timezone={{ TZ }}
upload_max_filesize = {{ MAX_FILESIZE }}M
post_max_size = {{ MAX_FILESIZE }}M