Skip to content

Commit 84ed851

Browse files
committed
Update cloudflare ips live servers
1 parent dfb0335 commit 84ed851

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/upgrade/versions/1.4.0.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ if [ -e "/etc/nginx/nginx.conf" ]; then
1515
fi
1616
fi
1717

18+
if [ -e "/etc/nginx/nginx.conf" ]; then
19+
echo "[ * ] Update Nginx.conf with changes to Cloudflare IP addresses"
20+
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
21+
fi
22+
1823
# Populating HELO/SMTP Banner for existing IPs
1924
if [ "$MAIL_SYSTEM" == "exim4" ]; then
2025

0 commit comments

Comments
 (0)