From 3071e67d042b37cbc89d9eebb7bc7d79ceed0689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Sun, 25 Nov 2018 22:07:01 +0100 Subject: [PATCH] Tweaks and lint --- .gitignore | 3 +++ h5bp/web_performance/cache-file-descriptors.conf | 12 ++++++++---- nginx.conf | 2 +- sites-enabled/.gitignore | 1 - sites-enabled/.gitkeep | 0 5 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .gitignore delete mode 100644 sites-enabled/.gitignore create mode 100644 sites-enabled/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4fcba20 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/logs/ +/sites-enabled/* +!/sites-enabled/.gitkeep diff --git a/h5bp/web_performance/cache-file-descriptors.conf b/h5bp/web_performance/cache-file-descriptors.conf index c03dcb7..e1b2ad0 100644 --- a/h5bp/web_performance/cache-file-descriptors.conf +++ b/h5bp/web_performance/cache-file-descriptors.conf @@ -1,3 +1,7 @@ +# ---------------------------------------------------------------------- +# | Cache file-descriptors | +# ---------------------------------------------------------------------- + # This tells Nginx to cache open file handles, "not found" errors, metadata about files and their permissions, etc. # # The upside of this is that Nginx can immediately begin sending data when a popular file is requested, @@ -13,10 +17,10 @@ # A maximum of the 1000 most recently used file descriptors can be cached at any time. # # Production servers with stable file collections will definitely want to enable the cache. - +# # https://nginx.org/en/docs/http/ngx_http_core_module.html#open_file_cache -open_file_cache max=1000 inactive=20s; -open_file_cache_valid 30s; +open_file_cache max=1000 inactive=20s; +open_file_cache_valid 30s; open_file_cache_min_uses 2; -open_file_cache_errors on; +open_file_cache_errors on; diff --git a/nginx.conf b/nginx.conf index 6025fe9..73e336b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ # Configuration File - Nginx Server Configs -# https://nginx.org/en/docs/dirindex.html +# https://nginx.org/en/docs/ # Run as a unique, less privileged user for security reasons. # Default: nobody nobody diff --git a/sites-enabled/.gitignore b/sites-enabled/.gitignore deleted file mode 100644 index 72e8ffc..0000000 --- a/sites-enabled/.gitignore +++ /dev/null @@ -1 +0,0 @@ -* diff --git a/sites-enabled/.gitkeep b/sites-enabled/.gitkeep new file mode 100644 index 0000000..e69de29