ActivityPub-federated video streaming platform using P2P directly in your web browser
Add comments in nginx regarding blocks that can be safely removed
Chocobozzz415acc63cf3b
diff --git a/README.md b/README.mdindex cd522301b3..9fb89039b4 100644--- a/README.md+++ b/README.md@@ -97,11 +97,10 @@ BitTorrent) inside the web browser, as of today.## Dependencies* nginx- * PostgreSQL+ * **PostgreSQL >= 9.6*** **Redis >= 2.8.18*** **NodeJS >= 8.x*** yarn- * OpenSSL (cli)* **FFmpeg >= 3.x**## Run in productiondiff --git a/support/nginx/peertube b/support/nginx/peertubeindex 0da427037b..b000311337 100644--- a/support/nginx/peertube+++ b/support/nginx/peertube@@ -58,12 +58,14 @@ server {root /var/www/certbot;}+ # Bypass PeerTube for performance reasons. Could be removedlocation ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ {add_header Cache-Control "public, max-age=31536000, immutable";alias /var/www/peertube/peertube-latest/client/dist/$1;}+ # Bypass PeerTube for performance reasons. Could be removedlocation ~ ^/static/(thumbnails|avatars)/ {if ($request_method = 'OPTIONS') {add_header 'Access-Control-Allow-Origin' '*';@@ -102,7 +104,7 @@ server {send_timeout 600;}- # Bypass PeerTube webseed route for better performances+ # Bypass PeerTube for performance reasons. Could be removedlocation /static/webseed {# Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per clientlimit_rate 800k;