Added new setting to force JPGs sent as WebP if supported by the client

This commit is contained in:
Chris
2023-08-24 23:09:59 +02:00
parent 70cdcf5dcf
commit 422c17eb65
4 changed files with 47 additions and 11 deletions

View File

@@ -18,6 +18,8 @@ _maxUploadSize() {
_filePermissions() {
chown -R nginx:nginx /var/www
touch data/sha1.csv
chown nginx:nginx data/sha1.csv
}
_buildConfig() {
@@ -65,16 +67,16 @@ if [[ ${MAX_UPLOAD_SIZE:=100} =~ ^[0-9]+$ ]]; then
_maxUploadSize
fi
# run _filePermissions function unless SKIP_FILEPERMISSIONS is set to true
if [[ ${SKIP_FILEPERMISSIONS:=false} != true ]]; then
_filePermissions
fi
echo ' [+] Starting php'
php-fpm7
chown -R nginx:nginx /var/www/
echo ' [+] Creating config'
touch data/sha1.csv
chown nginx:nginx data/sha1.csv
_buildConfig > inc/config.inc.php
echo ' [+] Starting nginx'