Parcourir la source

fix default variables

Christian Winther il y a 1 an
Parent
commit
3a7fd8eac9
2 fichiers modifiés avec 9 ajouts et 9 suppressions
  1. 7 7
      .env.docker
  2. 2 2
      docker/shared/root/docker/entrypoint.d/04-defaults.envsh

+ 7 - 7
.env.docker

@@ -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".

+ 2 - 2
docker/shared/root/docker/entrypoint.d/04-defaults.envsh

@@ -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}"