You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install/upgrade/versions/1.7.0.sh
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,3 +111,11 @@ if [ "$PHPMYADMIN_KEY" != "" ]; then
111
111
$BIN/v-delete-sys-pma-sso quiet
112
112
$BIN/v-add-sys-pma-sso quiet
113
113
fi
114
+
115
+
if [ -f /etc/nginx/nginx.conf ] && [ !-f /etc/nginx/conf.d/cloudflare.inc ];then
116
+
echo"[ * ] Enable support for updating Cloudflare Ips"
117
+
sed -i '/set_real_ip_from/d' /etc/nginx/nginx.conf
118
+
sed -i '/real_ip_header/d' /etc/nginx/nginx.conf
119
+
sed -i 's|# Cloudflare https://www.cloudflare.com/ips|# Cloudflare https://www.cloudflare.com/ips\n include /etc/nginx/conf.d/cloudflare.inc;|g' /etc/nginx/nginx.conf
120
+
# At a later stage a function will run and will load all the new rules
0 commit comments