From 2aba1e3bf98717f403b064f4de3f893bf1b009aa Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 27 Mar 2023 22:05:08 +0300 Subject: [PATCH] Added missing docs of Snap avatars max size etc. Thanks to xet7 ! --- snap-src/bin/wekan-help | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/snap-src/bin/wekan-help b/snap-src/bin/wekan-help index adcb17bdb..2984e8eab 100755 --- a/snap-src/bin/wekan-help +++ b/snap-src/bin/wekan-help @@ -148,6 +148,24 @@ echo -e "\t$ snap set $SNAP_NAME attachments-upload-max-size='5000000'" echo -e "Disable, default:" echo -e "\t$ snap unset $SNAP_NAME attachments-upload-max-size" echo -e "\n" +echo -e "Avatars upload validation by an external program. {file} is replaced by the uploaded file. Example: /usr/local/bin/avscan {file}" +echo -e "Enable:" +echo -e "\t$ snap set $SNAP_NAME avatars-upload-external-program='/usr/local/bin/avscan {file}'" +echo -e "Disable, default:" +echo -e "\t$ snap unset $SNAP_NAME avatars-upload-external-program" +echo -e "\n" +echo -e "Avatars upload mime types. Example: image/*,text/*" +echo -e "Enable:" +echo -e "\t$ snap set $SNAP_NAME avatars-upload-mime-types='image/*,text/*'" +echo -e "Disable, default:" +echo -e "\t$ snap unset $SNAP_NAME avatars-upload-mime-types" +echo -e "\n" +echo -e "Avatars upload max size in bytes. Example: 5000000" +echo -e "Enable:" +echo -e "\t$ snap set $SNAP_NAME avatars-upload-max-size='5000000'" +echo -e "Disable, default:" +echo -e "\t$ snap unset $SNAP_NAME avatars-upload-max-size" +echo -e "\n" echo -e "Max image pixel: Allow to shrink attached/pasted image https://github.com/wekan/wekan/pull/2544" echo -e "Example:" echo -e "\t$ snap set $SNAP_NAME max-image-pixel='1024'"