Skip to content

Commit e7ec3fa

Browse files
author
Alexandros Ioannides
authored
Update 1.4.0.sh
1 parent 67bb73e commit e7ec3fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install/upgrade/versions/1.4.0.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
####### Place additional commands below. #######
77
#######################################################################################
88

9-
# Allow Fast CGI Cache to be enabled for Nginx Standalone
9+
# Add support for nginx FastCGI cache (standalone)
1010
if [ -e "/etc/nginx/nginx.conf" ]; then
1111
check=$(cat /etc/nginx/nginx.conf | grep 'fastcgi_cache_path');
1212
if [ -z "$check" ]; then
13-
echo "[ * ] Enabling Nginx FastCGI cache support..."
14-
sed -i 's/# Cache bypass/# FastCGI Cache settings\n fastcgi_cache_path \/var\/cache\/nginx\/php-fpm levels=2\n keys_zone=fcgi_cache:10m inactive=60m max_size=1024m;\n fastcgi_cache_key \"$host$request_uri $cookie_user\";\n fastcgi_temp_path \/var\/cache\/nginx\/temp;\n fastcgi_ignore_headers Expires Cache-Control;\n fastcgi_cache_use_stale error timeout invalid_header;\n fastcgi_cache_valid any 1d;\n\n # Cache bypass/g' /etc/nginx/nginx.conf
13+
echo "[ * ] Enabling nginx FastCGI cache support..."
14+
sed -i 's/# Cache bypass/# FastCGI cache\n fastcgi_cache_path \/var\/cache\/nginx\/micro levels=1:2 keys_zone=microcache:10m max_size=1024m inactive=30m;\n fastcgi_cache_key \"$scheme$request_method$host$request_uri\";\n fastcgi_cache_methods GET HEAD;\n fastcgi_cache_use_stale updating error timeout invalid_header http_500 http_503;\n fastcgi_ignore_headers Cache-Control Expires Set-Cookie;\n\n # Cache bypass/g' /etc/nginx/nginx.conf
1515
fi
1616
fi
1717

18-
# Populating HELO/SMTP Banner for existing ip's
18+
# Populating HELO/SMTP Banner for existing IPs
1919
if [ "$MAIL_SYSTEM" == "exim4" ]; then
2020
source $HESTIA/func/ip.sh
2121

@@ -109,15 +109,15 @@ fi
109109
# New configuration value for enforcing subdomain ownership
110110
check=$(cat $HESTIA/conf/hestia.conf | grep 'ENFORCE_SUBDOMAIN_OWNERSHIP');
111111
if [ -z "$check" ]; then
112-
echo "[ * ] Setting ENFORCE_SUBDOMAIN_OWNERSHIP to no"
112+
echo "[ * ] Setting ENFORCE_SUBDOMAIN_OWNERSHIP to no..."
113113
echo "ENFORCE_SUBDOMAIN_OWNERSHIP='no'" >> $HESTIA/conf/hestia.conf
114114
fi
115115

116116
# New API feature to set allowed IPs
117117
if [ "$api" = "yes" ]; then
118118
check=$(cat $HESTIA/conf/hestia.conf | grep 'API_ALLOWED_IP');
119119
if [ -z "$check" ]; then
120-
echo "[ * ] Setting API_ALLOWED_IP to allow-all"
120+
echo "[ * ] Setting API_ALLOWED_IP to allow-all..."
121121
echo "API_ALLOWED_IP='allow-all'" >> $HESTIA/conf/hestia.conf
122122
fi
123123
else

0 commit comments

Comments
 (0)