Tweaks and lint

This commit is contained in:
Léo Colombaro 2018-11-25 22:07:01 +01:00
parent 70aff1c744
commit 3071e67d04
No known key found for this signature in database
GPG Key ID: 687B480A6D4F735F
5 changed files with 12 additions and 6 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/logs/
/sites-enabled/*
!/sites-enabled/.gitkeep

View File

@ -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. # 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, # 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. # 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. # 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 # https://nginx.org/en/docs/http/ngx_http_core_module.html#open_file_cache
open_file_cache max=1000 inactive=20s; open_file_cache max=1000 inactive=20s;
open_file_cache_valid 30s; open_file_cache_valid 30s;
open_file_cache_min_uses 2; open_file_cache_min_uses 2;
open_file_cache_errors on; open_file_cache_errors on;

View File

@ -1,5 +1,5 @@
# Configuration File - Nginx Server Configs # 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. # Run as a unique, less privileged user for security reasons.
# Default: nobody nobody # Default: nobody nobody

View File

@ -1 +0,0 @@
*

0
sites-enabled/.gitkeep Normal file
View File