Skip to content

Commit 39509be

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#1744 from hestiacp/nginx-cache
Nginx cache improvements & version bumps
2 parents ecc2552 + 5d59af4 commit 39509be

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

install/deb/nginx/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ http {
4545
fastcgi_send_timeout 180s;
4646
fastcgi_cache_lock on;
4747
fastcgi_cache_lock_timeout 5s;
48+
fastcgi_cache_background_update on;
49+
fastcgi_cache_revalidate on;
4850

4951
# Proxy settings
5052
proxy_redirect off;

install/upgrade/versions/1.4.0.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ if [ -e "/etc/nginx/nginx.conf" ]; then
1212
if [ -z "$check" ]; then
1313
echo "[ * ] Enabling nginx FastCGI cache support..."
1414
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 add_header X-FastCGI-Cache \$upstream_cache_status;\n\n # Cache bypass/g' /etc/nginx/nginx.conf
15+
sed -i 's/ fastcgi_cache_lock_timeout 5s;/ fastcgi_cache_lock_timeout 5s;\n fastcgi_cache_background_update on;\n fastcgi_cache_revalidate on;/g' /root/nginx.conf
16+
1517
fi
1618
fi
1719

1820
if [ -e "/etc/nginx/nginx.conf" ]; then
19-
echo "[ * ] Update Nginx.conf with changes to Cloudflare IP addresses"
21+
echo "[ * ] Updating nginx configuration with changes to Cloudflare IP addresses"
2022
sed -i 's/ set_real_ip_from 104.16.0.0\/12;/ set_real_ip_from 104.16.0.0\/13;\n set_real_ip_from 104.24.0.0\/14;/g' /etc/nginx/nginx.conf
2123
fi
2224

@@ -165,4 +167,4 @@ if [ -d "$HESTIA/web/images/webapps/" ]; then
165167
rm -rf $HESTIA/web/src/app/WebApp/Installers/PrestashopSetup.php
166168
rm -rf $HESTIA/web/src/app/WebApp/Installers/SymfonySetup.php
167169
rm -rf $HESTIA/web/src/app/WebApp/Installers/WordpressSetup.php
168-
fi
170+
fi

src/deb/nginx/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia-nginx
22
Package: hestia-nginx
33
Priority: optional
4-
Version: 1.19.8
4+
Version: 1.19.10
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/hst_autocompile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fi
211211
echo "Build version $BUILD_VER, with Nginx version $NGINX_V and PHP version $PHP_V"
212212

213213
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
214-
OPENSSL_V='1.1.1j'
214+
OPENSSL_V='1.1.1k'
215215
PCRE_V='8.44'
216216
ZLIB_V='1.2.11'
217217

0 commit comments

Comments
 (0)