mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-08-12 18:12:19 +03:00
Gitea mailer sendmail template and php-fpm cluster tuning.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,3 +11,22 @@ grep -q '^listen = 127.0.0.1:9000' "$CONF" 2>/dev/null || \
|
||||
grep -q '^listen.allowed_clients' "$CONF" 2>/dev/null || \
|
||||
printf '\nlisten.allowed_clients = 127.0.0.1\n' >> "$CONF"
|
||||
log "php-fpm83 listen 127.0.0.1:9000"
|
||||
|
||||
PHP_INI=/etc/php83/php.ini
|
||||
if [ -f "$PHP_INI" ]; then
|
||||
for pair in \
|
||||
'upload_max_filesize=16M' \
|
||||
'post_max_size=20M'
|
||||
do
|
||||
key="${pair%%=*}"
|
||||
val="${pair#*=}"
|
||||
if grep -q "^${key} =" "$PHP_INI" 2>/dev/null; then
|
||||
sed -i "s|^${key} = .*|${key} = ${val}|" "$PHP_INI"
|
||||
elif grep -q "^;${key} =" "$PHP_INI" 2>/dev/null; then
|
||||
sed -i "s|^;${key} = .*|${key} = ${val}|" "$PHP_INI"
|
||||
else
|
||||
printf '\n%s = %s\n' "$key" "$val" >> "$PHP_INI"
|
||||
fi
|
||||
done
|
||||
log "php83 upload limits upload_max_filesize=16M post_max_size=20M"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user