diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-11-16 19:16:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 19:16:49 +0100 |
commit | 5f59cf077fd9f9c0c91c7bb56efbfd5db103bff2 (patch) | |
tree | e9153bdc5891a8c09f241f00e624edda82f76f62 /README.md | |
parent | 12c8a46362f1f92d1c1a34991a76c55f625a80c6 (diff) | |
download | PeerTube-5f59cf077fd9f9c0c91c7bb56efbfd5db103bff2.tar.gz PeerTube-5f59cf077fd9f9c0c91c7bb56efbfd5db103bff2.tar.zst PeerTube-5f59cf077fd9f9c0c91c7bb56efbfd5db103bff2.zip |
refresh nginx config and optimize delivery (#3313)
refactors the Nginx configuration for the following points:
- update tls version to include 1.3 by default. so far it was not included by default to make room for previous versions of Nginx, but since 2018 Debian stable has included Nginx in version 1.14.1, and tls 1.3 is available since Nginx 1.13.0.
- clearly indicate that new minimum required version.
- update outdated ssl_ciphers to remove cipher required to support android 4.4, since that version is unsupported since March 2020.
- reordered configuration in sections for easier maintenance: performance optimizations are separated from the vital application/websocket parts.
- move parts that always require manual configuration at the top: peertube host and server name, use server_name
- move peertube host to a more flexible upstream block: it allows to configure it in one place instead of 3, and is future-proof regarding load-balancing.
- simplified port 80 block: Let’s Encrypt supports 301 redirects.
- group certificate-related config together.
- remove reslover config: it defaults to /etc/resolv.conf which is more than enough.
- align values with their neighbors for easier reading
- always specify units
- always specify default values when they differ from the values set
- use ’m’ for minutes, ’M’ for megabytes
- add consensual optimizations wrt file serving:
- add timeout optimizations
- add file descriptor cache optimizations
- enable sendfile with chunk size > rate limit
- enable threading
- tcp optimizations
- point to further, more system-specific optimizations in the section description
- CDN configuration reduced to one line change
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -50,6 +50,10 @@ Be part of a network of multiple small federated, interoperable video hosting pr | |||
50 | <a href="https://automate.browserstack.com/public-build/T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"> | 50 | <a href="https://automate.browserstack.com/public-build/T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"> |
51 | <img src="https://automate.browserstack.com/badge.svg?badge_key=T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"/> | 51 | <img src="https://automate.browserstack.com/badge.svg?badge_key=T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"/> |
52 | </a> | 52 | </a> |
53 | |||
54 | <a href="https://weblate.framasoft.org/projects/peertube/angular/"> | ||
55 | <img src="https://weblate.framasoft.org/widgets/peertube/-/angular/svg-badge.svg"/> | ||
56 | </a> | ||
53 | </p> | 57 | </p> |
54 | 58 | ||
55 | <p align="center"> | 59 | <p align="center"> |