Skip to content

Commit a1dc052

Browse files
authored
Fix: hestiacp#3875 Include cloudflare.inc (hestiacp#3876)
Closes: hestiacp#3875
1 parent e77c9d9 commit a1dc052

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

install/deb/nginx/cloudflare.inc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Cloudflare IP Ranges
2+
# IPv4
3+
set_real_ip_from 103.21.244.0/22;
4+
set_real_ip_from 103.22.200.0/22;
5+
set_real_ip_from 103.31.4.0/22;
6+
set_real_ip_from 104.16.0.0/13;
7+
set_real_ip_from 104.24.0.0/14;
8+
set_real_ip_from 108.162.192.0/18;
9+
set_real_ip_from 131.0.72.0/22;
10+
set_real_ip_from 141.101.64.0/18;
11+
set_real_ip_from 162.158.0.0/15;
12+
set_real_ip_from 172.64.0.0/13;
13+
set_real_ip_from 173.245.48.0/20;
14+
set_real_ip_from 188.114.96.0/20;
15+
set_real_ip_from 190.93.240.0/20;
16+
set_real_ip_from 197.234.240.0/22;
17+
set_real_ip_from 198.41.128.0/17;
18+
# IPv6
19+
set_real_ip_from 2400:cb00::/32;
20+
set_real_ip_from 2405:8100::/32;
21+
set_real_ip_from 2405:b500::/32;
22+
set_real_ip_from 2606:4700::/32;

install/hst-install-debian.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,8 @@ cp -f $HESTIA_INSTALL_DIR/nginx/nginx.conf /etc/nginx/
14081408
cp -f $HESTIA_INSTALL_DIR/nginx/status.conf /etc/nginx/conf.d/
14091409
cp -f $HESTIA_INSTALL_DIR/nginx/0rtt-anti-replay.conf /etc/nginx/conf.d/
14101410
cp -f $HESTIA_INSTALL_DIR/nginx/agents.conf /etc/nginx/conf.d/
1411+
# Copy over cloudflare.inc incase in the next step there are connection issues with CF
1412+
cp -f $HESTIA_INSTALL_DIR/nginx/cloudflare.inc /etc/nginx/conf.d/
14111413
cp -f $HESTIA_INSTALL_DIR/nginx/phpmyadmin.inc /etc/nginx/conf.d/
14121414
cp -f $HESTIA_INSTALL_DIR/nginx/phppgadmin.inc /etc/nginx/conf.d/
14131415
cp -f $HESTIA_INSTALL_DIR/logrotate/nginx /etc/logrotate.d/

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,8 @@ cp -f $HESTIA_INSTALL_DIR/nginx/nginx.conf /etc/nginx/
14231423
cp -f $HESTIA_INSTALL_DIR/nginx/status.conf /etc/nginx/conf.d/
14241424
cp -f $HESTIA_INSTALL_DIR/nginx/0rtt-anti-replay.conf /etc/nginx/conf.d/
14251425
cp -f $HESTIA_INSTALL_DIR/nginx/agents.conf /etc/nginx/conf.d/
1426+
# Copy over cloudflare.inc incase in the next step there are connection issues with CF
1427+
cp -f $HESTIA_INSTALL_DIR/nginx/cloudflare.inc /etc/nginx/conf.d/
14261428
cp -f $HESTIA_INSTALL_DIR/nginx/phpmyadmin.inc /etc/nginx/conf.d/
14271429
cp -f $HESTIA_INSTALL_DIR/nginx/phppgadmin.inc /etc/nginx/conf.d/
14281430
cp -f $HESTIA_INSTALL_DIR/logrotate/nginx /etc/logrotate.d/

0 commit comments

Comments
 (0)