From 84d67e2bb37d188985cf08737ded9a752d467fc9 Mon Sep 17 00:00:00 2001 From: Gontier Julien Date: Sun, 18 Sep 2022 21:56:05 +0200 Subject: [PATCH 1/2] Improve nginx performance. Signed-off-by: Gontier Julien --- preset/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/preset/nginx.conf b/preset/nginx.conf index 5830bc8..9f043fc 100644 --- a/preset/nginx.conf +++ b/preset/nginx.conf @@ -22,6 +22,12 @@ events { } http { + # By default, multi-threading is disabled, so we enable it. + aio threads; + + # Even if it not really need, it always good practice to set it up. + charset utf-8; + # Includes mapping of file name extensions to MIME types of responses # and defines the default type. include /etc/nginx/mime.types; From 53122320ea9963a77e9a9e8a9ffbaab7fc4586b0 Mon Sep 17 00:00:00 2001 From: Gontier Julien Date: Sun, 18 Sep 2022 21:57:08 +0200 Subject: [PATCH 2/2] whitespace Signed-off-by: Gontier Julien --- preset/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preset/nginx.conf b/preset/nginx.conf index 9f043fc..d28864c 100644 --- a/preset/nginx.conf +++ b/preset/nginx.conf @@ -26,7 +26,7 @@ http { aio threads; # Even if it not really need, it always good practice to set it up. - charset utf-8; + charset utf-8; # Includes mapping of file name extensions to MIME types of responses # and defines the default type.