Skip to content

Commit c0a3af0

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#1732 from jaapmarcus/fix/cf-ips
Changes to CF ips for live servers
2 parents 9821788 + 84ed851 commit c0a3af0

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)