Skip to content

Commit 07cdd92

Browse files
authored
Update Nginx keepalive_requests to default (hestiacp#4055)
1 parent 846c0e3 commit 07cdd92

File tree

5 files changed

+41
-6
lines changed

5 files changed

+41
-6
lines changed

install/deb/nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ http {
2727
large_client_header_buffers 4 8k;
2828
send_timeout 60s;
2929
keepalive_timeout 30s;
30-
keepalive_requests 10000;
30+
keepalive_requests 1000;
3131
reset_timedout_connection on;
3232
server_tokens off;
3333
server_name_in_redirect off;
@@ -127,4 +127,4 @@ http {
127127
# Wildcard include
128128
include /etc/nginx/conf.d/*.conf;
129129
include /etc/nginx/conf.d/domains/*.conf;
130-
}
130+
}

install/rpm/nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ http {
2727
large_client_header_buffers 4 8k;
2828
send_timeout 60s;
2929
keepalive_timeout 30s;
30-
keepalive_requests 10000;
30+
keepalive_requests 1000;
3131
reset_timedout_connection on;
3232
server_tokens off;
3333
server_name_in_redirect off;
@@ -127,4 +127,4 @@ http {
127127
# Wildcard include
128128
include /etc/nginx/conf.d/*.conf;
129129
include /etc/nginx/conf.d/domains/*.conf;
130-
}
130+
}

install/upgrade/versions/1.8.9.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
# Hestia Control Panel upgrade script for target version 1.8.8
4+
5+
#######################################################################################
6+
####### Place additional commands below. #######
7+
#######################################################################################
8+
####### upgrade_config_set_value only accepts true or false. #######
9+
####### #######
10+
####### Pass through information to the end user in case of a issue or problem #######
11+
####### #######
12+
####### Use add_upgrade_message "My message here" to include a message #######
13+
####### in the upgrade notification email. Example: #######
14+
####### #######
15+
####### add_upgrade_message "My message here" #######
16+
####### #######
17+
####### You can use \n within the string to create new lines. #######
18+
#######################################################################################
19+
20+
upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
21+
upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
22+
upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
23+
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
24+
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
25+
26+
# Modify existing POLICY_USER directives (POLICY_USER_CHANGE_THEME, POLICY_USER_EDIT_WEB_TEMPLATES
27+
# and POLICY_USER_VIEW_LOGS) that are using value 'true' instead of the correct value 'yes'
28+
29+
hestia_conf="$HESTIA/conf/hestia.conf"
30+
hestia_defaults_conf="$HESTIA/conf/defaults/hestia.conf"
31+
32+
if [ -f /etc/nginx/nginx.conf ]; then
33+
echo "[ * ] Mitigate HTTP/2 Rapid Reset Attack via Nginx CVE CVE-2023-44487"
34+
sed -i -E 's/(.*keepalive_requests\s{1,})10000;/\11000;/' /etc/nginx/nginx.conf /usr/local/hestia/nginx/conf/nginx.conf
35+
fi

src/deb/nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ http {
2727
large_client_header_buffers 4 8k;
2828
send_timeout 60s;
2929
keepalive_timeout 30s;
30-
keepalive_requests 10000;
30+
keepalive_requests 1000;
3131
reset_timedout_connection on;
3232
server_tokens off;
3333
server_name_in_redirect off;

src/rpm/nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ http {
2727
large_client_header_buffers 4 8k;
2828
send_timeout 60s;
2929
keepalive_timeout 30s;
30-
keepalive_requests 10000;
30+
keepalive_requests 1000;
3131
reset_timedout_connection on;
3232
server_tokens off;
3333
server_name_in_redirect off;

0 commit comments

Comments
 (0)