Skip to content

Commit b52c4f8

Browse files
authored
Merge branch 'main' into staging/fixes
2 parents a382f5d + e9a15f0 commit b52c4f8

File tree

19 files changed

+53
-179
lines changed

19 files changed

+53
-179
lines changed

bin/v-change-sys-config-value

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ source $HESTIA/conf/hestia.conf
2323

2424
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
2525

26+
# Perform verification if read-only mode is enabled
27+
check_hestia_demo_mode
2628

2729
#----------------------------------------------------------#
2830
# Verifications #

install/deb/nginx/nginx.conf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,6 @@ http {
131131
proxy_cache_use_stale error timeout invalid_header http_502;
132132
proxy_cache_valid any 1d;
133133

134-
# FastCGI Cache settings
135-
fastcgi_cache_path /var/cache/nginx/php-fpm levels=2 keys_zone=cache:10m inactive=60m max_size=1024m;
136-
fastcgi_cache_key "$host$request_uri $cookie_user";
137-
fastcgi_temp_path /var/cache/nginx/temp;
138-
fastcgi_ignore_headers Expires Cache-Control;
139-
fastcgi_cache_use_stale error timeout invalid_header;
140-
fastcgi_cache_valid any 1d;
141-
142134
# Cache bypass
143135
map $http_cookie $no_cache {
144136
default 0;

install/deb/templates/web/nginx/caching.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ server {
1717
location / {
1818
proxy_pass https://%ip%:%web_ssl_port%;
1919

20-
proxy_cache %domain%;
20+
proxy_cache cache;
2121
proxy_cache_valid 15m;
2222
proxy_cache_valid 404 1m;
2323
proxy_no_cache $no_cache;

install/deb/templates/web/nginx/caching.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ server {
1212
location / {
1313
proxy_pass http://%ip%:%web_port%;
1414
15-
proxy_cache %domain%;
15+
proxy_cache cache;
1616
proxy_cache_valid 15m;
1717
proxy_cache_valid 404 1m;
1818
proxy_no_cache $no_cache;

install/deb/templates/web/nginx/php-fpm/caching.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

install/deb/templates/web/nginx/php-fpm/caching.stpl

Lines changed: 0 additions & 63 deletions
This file was deleted.

install/deb/templates/web/nginx/php-fpm/caching.tpl

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/deb/hestia/control

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

src/deb/php/control

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

src/hst_autocompile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ NGINX='https://nginx.org/download/nginx-'$(echo $NGINX_V |cut -d"~" -f1)'.tar.gz
180180
OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
181181
PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
182182
ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
183-
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"-" -f1)'.tar.gz'
183+
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"~" -f1)'.tar.gz'
184184

185185
# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
186186
branch=$(echo "$branch" |sed 's/\//-/g');
@@ -330,7 +330,7 @@ if [ "$PHP_B" = true ] ; then
330330
download_file $PHP '-' | tar xz
331331

332332
# Change to php directory
333-
cd php-$(echo $PHP_V |cut -d"-" -f1)
333+
cd php-$(echo $PHP_V |cut -d"~" -f1)
334334

335335
# Configure PHP
336336
./configure --prefix=/usr/local/hestia/php \
@@ -355,7 +355,7 @@ if [ "$PHP_B" = true ] ; then
355355

356356
# Cleare up unused files
357357
cd $BUILD_DIR
358-
rm -r php-$(echo $PHP_V |cut -d"-" -f1)
358+
rm -r php-$(echo $PHP_V |cut -d"~" -f1)
359359

360360
# Prepare Deb Package Folder Structure
361361
cd hestia-php_$PHP_V/

0 commit comments

Comments
 (0)