File tree Expand file tree Collapse file tree 15 files changed +55
-15
lines changed
Expand file tree Collapse file tree 15 files changed +55
-15
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ for auth in $authz; do
386386 status=$( echo " $answer " | grep HTTP/ | tail -n1 | cut -f 2 -d ' ' )
387387 details=$( echo " $answer " | grep detail | cut -f 1 -d ' ,' | cut -f 2-4 -d ' :' | cut -f 2 -d ' "' )
388388
389- debug_log " Step 5" " - status: ${status} \n- nonce: ${nonce} \n- validation: ${validation} \n- details: ${details} \n- answer: ${answer} "
389+ debug_log " Step 5" " - status: ${status} \n- url: ${url} \n- nonce: ${nonce} \n- validation: ${validation} \n- details: ${details} \n- answer: ${answer} "
390390
391391 if [[ " $status " -ne 200 ]]; then
392392 # Delete DNS CAA record
@@ -400,8 +400,14 @@ for auth in $authz; do
400400 fi
401401 fi
402402 fi
403- debug_log " Abort Step 5" " => Wrong status"
404- check_result " $E_CONNECT " " Let's Encrypt validation status $status ($domain ). Details: $details "
403+ # Download debug info from LE server
404+ result=$( wget -qO- $url )
405+ debug_log " Debug information Step 5" " $result "
406+ details=$( echo $result | jq ' .error.detail' )
407+ error_code=$( echo $result | jq ' .error.status' )
408+
409+ debug_log " Abort Step 5" " => Wrong status"
410+ check_result " $E_CONNECT " " Let's Encrypt validation status $status ($domain ). Details: $error_code :$details "
405411 fi
406412
407413 i=$(( i + 1 ))
Original file line number Diff line number Diff line change @@ -135,6 +135,11 @@ sed -i "s/9999/99$v_tpl/g" /etc/php/$version/fpm/pool.d/dummy.conf
135135cp -f $HESTIA_INSTALL_DIR /php-fpm/php-fpm.conf /etc/php/$version /fpm/
136136sed -i " s/fpm_v/$version /g" /etc/php/$version /fpm/php-fpm.conf
137137
138+ # Increase max upload and max post size
139+ sed -i " s/upload_max_filesize = 2M/upload_max_filesize = 100M/g" /etc/php/$version /fpm/php.ini
140+ sed -i " s/post_max_size = 8M/post_max_size = 100M/g" /etc/php/$version /fpm/php.ini
141+ sed -i " s/max_execution_time = 30/max_execution_time = 60/g" /etc/php/$version /fpm/php.ini
142+
138143# Install backend template
139144cp -f $HESTIA_INSTALL_DIR /php-fpm/multiphp.tpl \
140145 $HESTIA /data/templates/web/php-fpm/PHP-${version/ \. / _} .tpl
Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ get_srv_state() {
9494 if [ -z " $pids " ] && [ " $name " != ' nginx' ]; then
9595 pids=$( pgrep $name | tr ' \n' ' |' )
9696 fi
97+
98+ # Prevent from an SSH false positive when there is a TTY or SFTP connection but service is down
99+ if [ " $name " == ' ssh' ] && [ " $( systemctl show sshd.service | grep ' SubState=' | cut -f2 -d=) " != " running" ]; then
100+ pids=' '
101+ fi
97102
98103 # Checking pid
99104 if [ -n " $pids " ]; then
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ is_format_valid 'user' 'ip'
3838is_common_format_valid " $session_id " " SESSION_ID"
3939format_no_quotes " $user_agent " " USER_AGENT"
4040is_common_format_valid " $authlog " " AUTHLOG"
41- is_common_format_valid " $reason " " REASON"
41+ format_no_quotes " $reason " " REASON"
4242
4343
4444is_object_valid ' user' ' USER' " $user "
Original file line number Diff line number Diff line change @@ -988,16 +988,16 @@ is_base_domain_owner(){
988988 parse_object_kv_list " $web "
989989 if [ -z " $ALLOW_USERS " ] || [ " $ALLOW_USERS " != " yes" ]; then
990990 # Don't care if $basedomain all ready exists only if the owner is of the base domain is the current user
991- is_domain_new " " $basedomain ;
991+ check= $( is_domain_new " " $basedomain )
992992 if [ $? -ne 0 ]; then
993- echo " Error: $basedomain belongs to a different user" ;
993+ echo " Error: Unable to add $object . $basedomain belongs to a different user" ;
994994 exit 4;
995995 fi
996996 fi
997997 else
998- is_domain_new " " " $basedomain "
998+ check= $( is_domain_new " " " $basedomain " )
999999 if [ $? -ne 0 ]; then
1000- echo " Error: $basedomain belongs to a different user" ;
1000+ echo " Error: Unable to add $object . $basedomain belongs to a different user" ;
10011001 exit 4;
10021002 fi
10031003 fi
Original file line number Diff line number Diff line change @@ -53,3 +53,7 @@ logpath = /var/log/fail2ban.log
5353maxretry = 5
5454findtime = 86400
5555bantime = 864000
56+
57+ #Uncomment and add your IPs and or domains to the Whitelist
58+ #[DEFAULT]
59+ #ignoreip = 111.111.111.111 222.222.222.222 subdomain.example.tld example.tld 333.333.333.333
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ software="nginx apache2 apache2-utils apache2-suexec-custom
5353 dnsutils bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx
5454 hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
5555 rsyslog openssh-server util-linux ipset libapache2-mpm-itk zstd
56- lsb-release"
56+ lsb-release jq "
5757
5858
5959installer_dependencies=" apt-transport-https curl dirmngr gnupg wget ca-certificates"
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
5252 php$fpm_v -opcache php$fpm_v -pspell php$fpm_v -readline php$fpm_v -xml
5353 postgresql postgresql-contrib proftpd-basic quota rrdtool spamassassin sudo hestia=${HESTIA_INSTALL_VER}
5454 hestia-nginx hestia-php vim-common vsftpd whois unzip zip acl sysstat setpriv rsyslog
55- ipset libonig5 libzip5 openssh-server lsb-release zstd"
55+ ipset libonig5 libzip5 openssh-server lsb-release zstd jq "
5656
5757installer_dependencies=" apt-transport-https curl dirmngr gnupg wget software-properties-common ca-certificates"
5858
Original file line number Diff line number Diff line change @@ -53,3 +53,7 @@ logpath = /var/log/fail2ban.log
5353maxretry = 5
5454findtime = 86400
5555bantime = 864000
56+
57+ #Uncomment and add your IPs and or domains to the Whitelist
58+ #[DEFAULT]
59+ #ignoreip = 111.111.111.111 222.222.222.222 subdomain.example.tld example.tld 333.333.333.333
Original file line number Diff line number Diff line change 2929if [ -f " /etc/roundcube/config.inc.php" ]; then
3030 sed -i " s/?>//" /etc/roundcube/config.inc.php
3131 sed -i " s/?>//" /etc/roundcube/mimetypes.php
32- fi
32+ fi
33+
34+ for version in $( $HESTIA /bin/v-list-sys-php plain) ; do
35+ # Increase max upload and max post size
36+ sed -i " s/upload_max_filesize = 2M/upload_max_filesize = 100M/g" /etc/php/$version /fpm/php.ini
37+ sed -i " s/post_max_size = 8M/post_max_size = 100M/g" /etc/php/$version /fpm/php.ini
38+ sed -i " s/max_execution_time = 30$/max_execution_time = 60/g" /etc/php/$version /fpm/php.ini
39+ done
You can’t perform that action at this time.
0 commit comments