fix default variables

This commit is contained in:
Christian Winther 2024-01-17 14:46:07 +00:00
parent 45f1df78b0
commit 3a7fd8eac9
2 changed files with 9 additions and 9 deletions

View File

@ -134,6 +134,13 @@ APP_TIMEZONE="UTC"
# See: https://docs.pixelfed.org/technical-documentation/config/#max_photo_size-kb
#MAX_PHOTO_SIZE="15000"
# The max number of photos allowed per post.
#
# Defaults to "4".
#
# See: https://docs.pixelfed.org/technical-documentation/config/#max_album_length
#MAX_ALBUM_LENGTH="4"
# Update the max avatar size, in kB.
#
# Defaults to "2000" (2MB).
@ -162,13 +169,6 @@ APP_TIMEZONE="UTC"
# See: https://docs.pixelfed.org/technical-documentation/config/#max_name_length
#MAX_NAME_LENGTH="30"
# The max number of photos allowed per post.
#
# Defaults to "4".
#
# See: https://docs.pixelfed.org/technical-documentation/config/#max_album_length
#MAX_ALBUM_LENGTH="4"
# Resize and optimize image uploads.
#
# Defaults to "true".

View File

@ -12,8 +12,8 @@ entrypoint-set-script-name "${BASH_SOURCE[0]}"
load-config-files
: "${MAX_PHOTO_SIZE:=}"
: "${MAX_ALBUM_LENGTH:=}"
: "${MAX_PHOTO_SIZE:=15000}"
: "${MAX_ALBUM_LENGTH:=4}"
# We assign a 1MB buffer to the just-in-time calculated max post size to allow for fields and overhead
: "${POST_MAX_SIZE_BUFFER:=1M}"