Skip to content

Commit 9590d81

Browse files
committed
Merge remote-tracking branch 'origin/main' into beta/1.6.0
2 parents 660ac1d + e243d34 commit 9590d81

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

install/deb/nginx/nginx.conf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ http {
9999
set_real_ip_from 190.93.240.0/20;
100100
set_real_ip_from 197.234.240.0/22;
101101
set_real_ip_from 198.41.128.0/17;
102-
#set_real_ip_from 2400:cb00::/32;
103-
#set_real_ip_from 2405:b500::/32;
104-
#set_real_ip_from 2606:4700::/32;
105-
#set_real_ip_from 2803:f800::/32;
106-
#set_real_ip_from 2c0f:f248::/32;
107-
#set_real_ip_from 2a06:98c0::/29;
102+
# set_real_ip_from 2400:cb00::/32;
103+
# set_real_ip_from 2405:8100::/32;
104+
# set_real_ip_from 2405:b500::/32;
105+
# set_real_ip_from 2606:4700::/32;
106+
# set_real_ip_from 2803:f800::/32;
107+
# set_real_ip_from 2a06:98c0::/29;
108+
# set_real_ip_from 2c0f:f248::/32;
108109
real_ip_header CF-Connecting-IP;
109110

110111
# SSL PCI compliance

install/hst-install-ubuntu.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,11 +1316,6 @@ chown root:mail $HESTIA/ssl/*
13161316
chmod 660 $HESTIA/ssl/*
13171317
rm /tmp/hst.pem
13181318

1319-
# Adding nologin as a valid system shell
1320-
if [ -z "$(grep nologin /etc/shells)" ]; then
1321-
echo "/usr/sbin/nologin" >> /etc/shells
1322-
fi
1323-
13241319
# Install dhparam.pem
13251320
cp -f $HESTIA_INSTALL_DIR/ssl/dhparam.pem /etc/ssl
13261321

install/upgrade/versions/1.6.0.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,14 @@ fi
6767
if [[ ! -d $HESTIA/data/api ]]; then
6868
cp -rf $HESTIA_INSTALL_DIR/api $HESTIA/data/
6969
fi
70+
71+
# Update Cloudflare address
72+
if [ -f /etc/nginx/nginx.conf ] && [ "$(grep 'set_real_ip_from 2405:8100::/32' /etc/nginx/nginx.conf)" = "" ];then
73+
echo "[ * ] Updating nginx configuration with changes to Cloudflare IP addresses"
74+
sed -i "/#set_real_ip_from 2405:b500::\/32;/d" /etc/nginx/nginx.conf
75+
sed -i "/#set_real_ip_from 2606:4700::\/32;/d" /etc/nginx/nginx.conf
76+
sed -i "/#set_real_ip_from 2803:f800::\/32;/d" /etc/nginx/nginx.conf
77+
sed -i "/#set_real_ip_from 2c0f:f248::\/32;/d" /etc/nginx/nginx.conf
78+
sed -i "/#set_real_ip_from 2a06:98c0::\/29;/d" /etc/nginx/nginx.conf
79+
sed -i "s/#set_real_ip_from 2400:cb00::\/32;/# set_real_ip_from 2400:cb00::\/32;\n # set_real_ip_from 2606:4700::\/32;\n # set_real_ip_from 2803:f800::\/32;\n # set_real_ip_from 2405:b500::\/32;\n # set_real_ip_from 2405:8100::\/32;\n # set_real_ip_from 2a06:98c0::\/29;\n # set_real_ip_from 2c0f:f248::\/32;/g" /etc/nginx/nginx.conf
80+
fi

web/add/access-key/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
});
3535

3636
if (empty($apis_selected)) {
37-
$errors[] = _('apis');
37+
$errors[] = _('Permissions');
3838
} else if (count($check_invalid_apis) > 0) {
3939
//$errors[] = sprintf("%d apis not allowed", count($check_invalid_apis));
4040
foreach ($check_invalid_apis as $api_name) {

0 commit comments

Comments
 (0)