remove nginx fd caching, add module requirements

pull/3326/head
Rigel Kent 2020-11-18 08:15:49 +01:00
parent 3e8584b99a
commit 11c449eb1e
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
2 changed files with 6 additions and 5 deletions

View File

@ -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**
```

View File

@ -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/;