mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
Added new setting to force JPGs sent as WebP if supported by the client
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user