mirror of
https://github.com/myvesta/vesta
synced 2025-08-22 14:24:09 -07:00
Updating CloudFlare IP addresses
This commit is contained in:
parent
0ad91de3a3
commit
79402b2336
1 changed files with 10 additions and 0 deletions
|
@ -23,6 +23,16 @@ fi
|
|||
echo "1" > /usr/local/vesta/data/upgrades/show_changelog
|
||||
chmod a=rw /usr/local/vesta/data/upgrades/show_changelog
|
||||
|
||||
# Updating CloudFlare IP addresses
|
||||
if [ ! -f "/usr/local/vesta/data/upgrades/update-cloudflare-ips" ]; then
|
||||
if [ -f "/etc/nginx/nginx.conf" ]; then
|
||||
touch /usr/local/vesta/data/upgrades/update-cloudflare-ips
|
||||
echo "== Updating CloudFlare IP addresses"
|
||||
sed -i 's/ set_real_ip_from 104.16.0.0/12;/ set_real_ip_from 104.16.0.0/13;\n set_real_ip_from 104.24.0.0/14;/g' /etc/nginx/nginx.conf
|
||||
systemctl restart nginx
|
||||
fi
|
||||
fi
|
||||
|
||||
# Tuning of php-fpm pool.d config files (perfomances and limits)
|
||||
if [ ! -f "/usr/local/vesta/data/upgrades/tune-fpm-config-files-v2" ]; then
|
||||
touch /usr/local/vesta/data/upgrades/tune-fpm-config-files-v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue