aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-11-18 08:15:49 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-11-18 08:15:55 +0100
commit11c449eb1e7f1461125c86127c4a20db18954409 (patch)
tree262fb957164c41fbc8ccaf7388db5225aaed17c9
parent3e8584b99ae03ab4d87db0fe70c49c3744e8d762 (diff)
downloadPeerTube-11c449eb1e7f1461125c86127c4a20db18954409.tar.gz
PeerTube-11c449eb1e7f1461125c86127c4a20db18954409.tar.zst
PeerTube-11c449eb1e7f1461125c86127c4a20db18954409.zip
remove nginx fd caching, add module requirements
-rw-r--r--support/doc/production.md2
-rw-r--r--support/nginx/peertube9
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
142 142
143### TCP/IP Tuning 143### TCP/IP Tuning
144 144
145A 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.
146
145**On Linux** 147**On Linux**
146 148
147``` 149```
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 @@
1# Minimum Nginx version required: 1.13.0 (released Apr 25, 2017) 1# Minimum Nginx version required: 1.13.0 (released Apr 25, 2017)
2# Please check your Nginx installation features the following modules via 'nginx -V':
3# STANDARD HTTP MODULES: Core, Map, Proxy, Rewrite.
4# OPTIONAL HTTP MODULES: Gzip, Headers, HTTP/2, Log, Real IP, SSL, Thread Pool, Upstream.
5# THIRD PARTY MODULES: None.
2 6
3# Uncomment in production to redirect HTTP to HTTPS. Leave commented for docker-compose. 7# Uncomment in production to redirect HTTP to HTTPS. Leave commented for docker-compose.
4#server { 8#server {
@@ -144,11 +148,6 @@ server {
144 tcp_nopush on; # send headers in one piece 148 tcp_nopush on; # send headers in one piece
145 tcp_nodelay on; # don't buffer data sent, good for small data bursts in real time 149 tcp_nodelay on; # don't buffer data sent, good for small data bursts in real time
146 150
147 open_file_cache max=2000 inactive=5m; # default is no cache
148 open_file_cache_valid 2m; # default is 60s
149 open_file_cache_min_uses 2; # default is 1
150 open_file_cache_errors on;
151
152 # If you have a small /var/lib partition, it could be interesting to store temp nginx uploads in a different place 151 # If you have a small /var/lib partition, it could be interesting to store temp nginx uploads in a different place
153 # See https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_temp_path 152 # See https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_temp_path
154 #client_body_temp_path /var/www/peertube/storage/nginx/; 153 #client_body_temp_path /var/www/peertube/storage/nginx/;