1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-17 01:32:29 +02:00

Further improvements

This commit is contained in:
Florent Daigniere
2023-10-13 09:43:34 +02:00
parent bc6a38b655
commit c56b58149b
3 changed files with 24 additions and 1 deletions

View File

@ -58,6 +58,7 @@ plugin {
{% if (FULL_TEXT_SEARCH or '').lower() not in ['off', 'false', '0'] %} {% if (FULL_TEXT_SEARCH or '').lower() not in ['off', 'false', '0'] %}
fts = flatcurve fts = flatcurve
fts_index_timeout = 50s
fts_languages = {% if FULL_TEXT_SEARCH %}{{ FULL_TEXT_SEARCH.split(",") | join(" ") }}{% else %}en{% endif %} fts_languages = {% if FULL_TEXT_SEARCH %}{{ FULL_TEXT_SEARCH.split(",") | join(" ") }}{% else %}en{% endif %}
fts_tokenizers = generic email-address fts_tokenizers = generic email-address
fts_autoindex = yes fts_autoindex = yes
@ -82,6 +83,12 @@ plugin {
{% endif %} {% endif %}
} }
service indexer-worker {
executable = /bin/nice -n 10 /usr/libexec/dovecot/indexer-worker
# TODO: maybe MAXPROC? I guess it depends on how much RAM is available
process_limit = 1
}
############### ###############
# Authentication # Authentication
############### ###############

View File

@ -137,6 +137,10 @@ services:
oletools: oletools:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-{{ version }}} image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-{{ version }}}
hostname: oletools hostname: oletools
logging:
driver: journald
options:
tag: mailu-oletools
restart: always restart: always
networks: networks:
- noinet - noinet
@ -151,7 +155,12 @@ services:
{% if tika_enabled %} {% if tika_enabled %}
fts_attachments: fts_attachments:
image: apache/tika:2.9.0.0-full image: apache/tika:2.9.0.0-full
# ARM users may want iwishiwasaneagle/apache-tika-arm:2.1.0-full instead
hostname: tika hostname: tika
logging:
driver: journald
options:
tag: mailu-tika
restart: always restart: always
networks: networks:
- fts_attachments - fts_attachments
@ -161,6 +170,12 @@ services:
dns: dns:
- {{ dns }} - {{ dns }}
{% endif %} {% endif %}
healthcheck:
test: ["CMD-SHELL", "wget -nv -t1 -O /dev/null http://127.0.0.1:9998/tika || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
{% endif %} {% endif %}
antispam: antispam:

View File

@ -9,4 +9,5 @@ find /mailu/mail -type d -name xapian-indexes -prune -exec rm -r {} \+
And proactively force a reindexing using: And proactively force a reindexing using:
docker compose exec imap doveadm index -A '*' docker compose exec imap doveadm fts rescan -A
docker compose exec imap doveadm user '*'|while read u; do docker compose exec imap doveadm index -u $u '*'; done