From 11c449eb1e7f1461125c86127c4a20db18954409 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 18 Nov 2020 08:15:49 +0100 Subject: [PATCH] remove nginx fd caching, add module requirements --- support/doc/production.md | 2 ++ support/nginx/peertube | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/support/doc/production.md b/support/doc/production.md index 0ee275e9e..4a8c488ee 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -142,6 +142,8 @@ $ sudo pkg install dehydrated ### TCP/IP Tuning +A lot of your instance's raw performance is dependent on a properly tuned machine and more specifically, reverse-proxy. We provide support for Nginx and spent a lot of time putting sane defaults in it, but we strongly advise you to follow up with instructions in https://github.com/denji/nginx-tuning as needed. + **On Linux** ``` diff --git a/support/nginx/peertube b/support/nginx/peertube index ceb434390..6d1c89459 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -1,4 +1,8 @@ # Minimum Nginx version required: 1.13.0 (released Apr 25, 2017) +# Please check your Nginx installation features the following modules via 'nginx -V': +# STANDARD HTTP MODULES: Core, Map, Proxy, Rewrite. +# OPTIONAL HTTP MODULES: Gzip, Headers, HTTP/2, Log, Real IP, SSL, Thread Pool, Upstream. +# THIRD PARTY MODULES: None. # Uncomment in production to redirect HTTP to HTTPS. Leave commented for docker-compose. #server { @@ -144,11 +148,6 @@ server { tcp_nopush on; # send headers in one piece tcp_nodelay on; # don't buffer data sent, good for small data bursts in real time - open_file_cache max=2000 inactive=5m; # default is no cache - open_file_cache_valid 2m; # default is 60s - open_file_cache_min_uses 2; # default is 1 - open_file_cache_errors on; - # If you have a small /var/lib partition, it could be interesting to store temp nginx uploads in a different place # See https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_temp_path #client_body_temp_path /var/www/peertube/storage/nginx/;