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 # See: https://docs.pixelfed.org/technical-documentation/config/#max_photo_size-kb
#MAX_PHOTO_SIZE="15000" #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. # Update the max avatar size, in kB.
# #
# Defaults to "2000" (2MB). # Defaults to "2000" (2MB).
@ -162,13 +169,6 @@ APP_TIMEZONE="UTC"
# See: https://docs.pixelfed.org/technical-documentation/config/#max_name_length # See: https://docs.pixelfed.org/technical-documentation/config/#max_name_length
#MAX_NAME_LENGTH="30" #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. # Resize and optimize image uploads.
# #
# Defaults to "true". # Defaults to "true".

View file

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