Skip to content

Commit a97f37d

Browse files
author
Kristan Kenney
committed
Sync with upstream development branch
2 parents a4fca3f + dbcc41d commit a97f37d

File tree

5 files changed

+35
-21
lines changed

5 files changed

+35
-21
lines changed

install/deb/nginx/nginx.conf

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ http {
3232
server_names_hash_max_size 512;
3333
server_names_hash_bucket_size 512;
3434
charset utf-8;
35-
35+
3636
# FastCGI settings
3737
fastcgi_buffers 4 256k;
3838
fastcgi_buffer_size 256k;
@@ -103,23 +103,22 @@ http {
103103
#set_real_ip_from 2a06:98c0::/29;
104104
real_ip_header CF-Connecting-IP;
105105

106-
# SSL PCI Compliance
107-
ssl_session_cache shared:SSL:10m;
106+
# SSL PCI compliance
107+
ssl_session_cache shared:SSL:20m;
108+
ssl_buffer_size 1400;
108109
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
109110
ssl_prefer_server_ciphers on;
110111
ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
111112
ssl_dhparam /etc/ssl/dhparam.pem;
112-
ssl_ecdh_curve secp384r1;
113-
ssl_session_cache shared:SSL:10m;
113+
ssl_ecdh_curve secp384r1;
114114
ssl_session_tickets off;
115-
ssl_stapling on;
115+
ssl_stapling on;
116116
ssl_stapling_verify on;
117-
ssl_buffer_size 1400;
118117
resolver 1.0.0.1 1.1.1.1 valid=300s;
119-
resolver_timeout 5s;
120-
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
121-
add_header X-Frame-Options SAMEORIGIN;
122-
add_header X-Content-Type-Options nosniff;
118+
resolver_timeout 5s;
119+
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
120+
add_header X-Frame-Options SAMEORIGIN;
121+
add_header X-Content-Type-Options nosniff;
123122

124123
# Error pages
125124
error_page 403 /error/403.html;
@@ -141,7 +140,7 @@ http {
141140
~wordpress_logged_in 1;
142141
}
143142

144-
# File cache settings
143+
# File cache (static assets)
145144
open_file_cache max=10000 inactive=30s;
146145
open_file_cache_valid 60s;
147146
open_file_cache_min_uses 2;
@@ -150,4 +149,4 @@ http {
150149
# Wildcard include
151150
include /etc/nginx/conf.d/*.conf;
152151
include /etc/nginx/conf.d/domains/*.conf;
153-
}
152+
}

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.15.10
4+
Version: 1.16.0
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/deb/nginx/nginx.conf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,15 @@ http {
7575
gzip_proxied any;
7676
gzip_disable "MSIE [1-6]\.";
7777

78-
# SSL PCI Compliance
78+
# SSL PCI compliance
7979
ssl_session_cache shared:SSL:10m;
80-
ssl_session_timeout 10m;
80+
ssl_buffer_size 1400;
81+
ssl_session_timeout 60m;
8182
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
8283
ssl_prefer_server_ciphers on;
8384
ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
85+
add_header X-Frame-Options SAMEORIGIN;
86+
add_header X-Content-Type-Options nosniff;
8487

8588
# Error pages
8689
error_page 403 /error/403.html;

src/deb/php/php.ini

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,10 @@ syslog.ident = hestia-php
600600
; control characters. If your logger accepts everything, then no filtering
601601
; is needed at all.
602602
; Allowed values are:
603-
; ascii (only base ASCII characters)
604-
; no_ctrl (all characters except control characters)
603+
; ascii (all printable ASCII characters and NL)
604+
; no-ctrl (all characters except control characters)
605605
; all (all characters)
606+
; http://php.net/syslog.filter
606607
;syslog.filter = ascii
607608

608609
;windows.show_crt_warning
@@ -1011,8 +1012,19 @@ date.timezone = UTC
10111012
;intl.use_exceptions = 0
10121013

10131014
[sqlite3]
1015+
; Directory pointing to SQLite3 extensions
1016+
; http://php.net/sqlite3.extension-dir
10141017
;sqlite3.extension_dir =
10151018

1019+
; SQLite defensive mode flag (only available from SQLite 3.26+)
1020+
; When the defensive flag is enabled, language features that allow ordinary
1021+
; SQL to deliberately corrupt the database file are disabled. This forbids
1022+
; writing directly to the schema, shadow tables (eg. FTS data tables), or
1023+
; the sqlite_dbpage virtual table.
1024+
; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html
1025+
; (for older SQLite versions, this flag has no use)
1026+
sqlite3.defensive = 1
1027+
10161028
[Pcre]
10171029
; PCRE library backtracking limit.
10181030
; http://php.net/pcre.backtrack-limit

src/hst_autocompile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ INSTALL_DIR='/usr/local/hestia'
77

88
# Set Version for compiling
99
HESTIA_V='0.9.8-29_amd64'
10-
NGINX_V='1.15.11'
10+
NGINX_V='1.16.0'
1111
OPENSSL_V='1.1.1b'
12-
PCRE_V='8.42'
12+
PCRE_V='8.43'
1313
ZLIB_V='1.2.11'
1414
PHP_V='7.3.4'
1515

@@ -345,4 +345,4 @@ if [ "$install" = 'yes' ] || [ "$install" = 'YES' ] || [ "$install" = 'y' ] || [
345345
dpkg -i $i
346346
done
347347
unset $answer
348-
fi
348+
fi

0 commit comments

Comments
 (0)