mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Updating CloudFlare IP addresses
This commit is contained in:
parent
92fa49bd6c
commit
c7a089b37e
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ 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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue