Added the option env option to configure that all new attachment files should be downloaded by default

This commit is contained in:
Jan Böhmer 2023-11-26 23:44:02 +01:00
parent 0f0adfcf36
commit 18db20e511
6 changed files with 44 additions and 4 deletions

2
.env
View file

@ -29,6 +29,8 @@ INSTANCE_NAME="Part-DB"
# Allow users to download attachments to the server by providing an URL
# This could be a potential security issue, as the user can retrieve any file the server has access to (via internet)
ALLOW_ATTACHMENT_DOWNLOADS=0
# Set this to 1, if the "download external files" checkbox should be checked by default for new attachments
ATTACHMENT_DOWNLOAD_BY_DEFAULT=0
# Use gravatars for user avatars, when user has no own avatar defined
USE_GRAVATAR=0
# The maximum allowed size for attachment files in bytes (you can use M for megabytes and G for gigabytes)