|
6 | 6 | ####### Place additional commands below. ####### |
7 | 7 | ####################################################################################### |
8 | 8 |
|
9 | | -# Allow Fast CGI Cache to be enabled for Nginx Standalone |
| 9 | +# Add support for nginx FastCGI cache (standalone) |
10 | 10 | if [ -e "/etc/nginx/nginx.conf" ]; then |
11 | 11 | check=$(cat /etc/nginx/nginx.conf | grep 'fastcgi_cache_path'); |
12 | 12 | 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 |
15 | 15 | fi |
16 | 16 | fi |
17 | 17 |
|
18 | | -# Populating HELO/SMTP Banner for existing ip's |
| 18 | +# Populating HELO/SMTP Banner for existing IPs |
19 | 19 | if [ "$MAIL_SYSTEM" == "exim4" ]; then |
20 | 20 | source $HESTIA/func/ip.sh |
21 | 21 |
|
|
109 | 109 | # New configuration value for enforcing subdomain ownership |
110 | 110 | check=$(cat $HESTIA/conf/hestia.conf | grep 'ENFORCE_SUBDOMAIN_OWNERSHIP'); |
111 | 111 | if [ -z "$check" ]; then |
112 | | - echo "[ * ] Setting ENFORCE_SUBDOMAIN_OWNERSHIP to no" |
| 112 | + echo "[ * ] Setting ENFORCE_SUBDOMAIN_OWNERSHIP to no..." |
113 | 113 | echo "ENFORCE_SUBDOMAIN_OWNERSHIP='no'" >> $HESTIA/conf/hestia.conf |
114 | 114 | fi |
115 | 115 |
|
116 | 116 | # New API feature to set allowed IPs |
117 | 117 | if [ "$api" = "yes" ]; then |
118 | 118 | check=$(cat $HESTIA/conf/hestia.conf | grep 'API_ALLOWED_IP'); |
119 | 119 | if [ -z "$check" ]; then |
120 | | - echo "[ * ] Setting API_ALLOWED_IP to allow-all" |
| 120 | + echo "[ * ] Setting API_ALLOWED_IP to allow-all..." |
121 | 121 | echo "API_ALLOWED_IP='allow-all'" >> $HESTIA/conf/hestia.conf |
122 | 122 | fi |
123 | 123 | else |
|
0 commit comments