File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed
Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -1316,11 +1316,6 @@ chown root:mail $HESTIA/ssl/*
13161316chmod 660 $HESTIA /ssl/*
13171317rm /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
13251320cp -f $HESTIA_INSTALL_DIR /ssl/dhparam.pem /etc/ssl
13261321
Original file line number Diff line number Diff line change 6767if [[ ! -d $HESTIA /data/api ]]; then
6868 cp -rf $HESTIA_INSTALL_DIR /api $HESTIA /data/
6969fi
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
Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments