From 071ad15a97df5135b8edddec05d26a69ac6dc90b Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 13 Nov 2022 14:34:25 +0100 Subject: [PATCH] Better snappymail defaults --- webmails/nginx-webmail.conf | 6 +----- webmails/snappymail/defaults/application.ini | 11 +++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/webmails/nginx-webmail.conf b/webmails/nginx-webmail.conf index 37672ab1..1794a635 100644 --- a/webmails/nginx-webmail.conf +++ b/webmails/nginx-webmail.conf @@ -55,11 +55,7 @@ server { deny all; } - location ~* ^/(config|temp|logs) { - deny all; - } - - location ^~ /data { + location ~* /(config|temp|logs|data) { deny all; } diff --git a/webmails/snappymail/defaults/application.ini b/webmails/snappymail/defaults/application.ini index 71a19f35..85c8c7c6 100644 --- a/webmails/snappymail/defaults/application.ini +++ b/webmails/snappymail/defaults/application.ini @@ -5,6 +5,7 @@ attachment_size_limit = {{ MAX_FILESIZE }} [security] allow_admin_panel = Off +openpgp = On [labs] allow_gravatar = Off @@ -21,3 +22,13 @@ allow_sync = On [defaults] contacts_autosave = On + +[cache] +fast_cache_driver = "APCU" + +[imap] +use_move = On + +[labs] +image_exif_auto_rotate = On +try_to_detect_hidden_images = On