From 221753b62e1ab81c8760c212085b4a6aed8467bb Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 11 Dec 2023 18:36:08 +0000 Subject: [PATCH] update hash_bucket_size --- ansible/roles/trmm_dev/files/nginx-default.conf | 2 +- install.sh | 4 ++-- restore.sh | 4 ++-- update.sh | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ansible/roles/trmm_dev/files/nginx-default.conf b/ansible/roles/trmm_dev/files/nginx-default.conf index 0ab64cd9..665d25ea 100644 --- a/ansible/roles/trmm_dev/files/nginx-default.conf +++ b/ansible/roles/trmm_dev/files/nginx-default.conf @@ -13,7 +13,7 @@ http { server_tokens off; tcp_nopush on; types_hash_max_size 2048; - server_names_hash_bucket_size 64; + server_names_hash_bucket_size 256; include /etc/nginx/mime.types; default_type application/octet-stream; ssl_protocols TLSv1.2 TLSv1.3; diff --git a/install.sh b/install.sh index e416060f..1d77ed94 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="80" +SCRIPT_VERSION="81" SCRIPT_URL="https://raw.githubusercontent.com/amidaware/tacticalrmm/master/install.sh" sudo apt install -y curl wget dirmngr gnupg lsb-release ca-certificates @@ -232,7 +232,7 @@ http { sendfile on; tcp_nopush on; types_hash_max_size 2048; - server_names_hash_bucket_size 64; + server_names_hash_bucket_size 256; include /etc/nginx/mime.types; default_type application/octet-stream; ssl_protocols TLSv1.2 TLSv1.3; diff --git a/restore.sh b/restore.sh index a4cc1790..98bdbaac 100755 --- a/restore.sh +++ b/restore.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="54" +SCRIPT_VERSION="55" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/restore.sh' sudo apt update @@ -164,7 +164,7 @@ http { sendfile on; tcp_nopush on; types_hash_max_size 2048; - server_names_hash_bucket_size 64; + server_names_hash_bucket_size 256; include /etc/nginx/mime.types; default_type application/octet-stream; ssl_protocols TLSv1.2 TLSv1.3; diff --git a/update.sh b/update.sh index 695265f3..945f6acc 100644 --- a/update.sh +++ b/update.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="149" +SCRIPT_VERSION="150" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/update.sh' LATEST_SETTINGS_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/api/tacticalrmm/tacticalrmm/settings.py' YELLOW='\033[1;33m' @@ -186,7 +186,7 @@ if ! [[ $CHECK_NGINX_NOLIMIT ]]; then /' $nginxdefaultconf fi -sudo sed -i 's/# server_names_hash_bucket_size.*/server_names_hash_bucket_size 64;/g' $nginxdefaultconf +sudo sed -i 's/# server_names_hash_bucket_size.*/server_names_hash_bucket_size 256;/g' $nginxdefaultconf if ! sudo nginx -t >/dev/null 2>&1; then sudo nginx -t