allow setting upload_max_filesize by docker environment variable, see #915

This commit is contained in:
Shish
2023-06-27 01:55:32 +01:00
parent 16dc8dffce
commit cad3357e38
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ chown $UID:$GID /app/data
export PHP_CLI_SERVER_WORKERS=8
exec /usr/local/bin/su-exec shimmie:shimmie \
/usr/bin/php \
-d upload_max_filesize=50M \
-d post_max_size=50M \
-d upload_max_filesize=$UPLOAD_MAX_FILESIZE \
-d post_max_size=$UPLOAD_MAX_FILESIZE \
-S 0.0.0.0:8000 -q \
tests/router.php