From 6250e4ab1d3ebd31b45f9f36beb3c313ef3b7d68 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 11 Mar 2024 11:27:33 +0100 Subject: [PATCH] Improve production guide --- support/doc/production.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/support/doc/production.md b/support/doc/production.md index a4854b9b6..8a2338e8b 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -137,16 +137,16 @@ Copy the nginx configuration template: sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube ``` -Then set the domain for the webserver configuration file. -Replace `[peertube-domain]` with the domain for the peertube server. +Set the domain for the webserver configuration file by replacing `[peertube-domain]` with the domain for the peertube server: ```bash sudo sed -i 's/${WEBSERVER_HOST}/[peertube-domain]/g' /etc/nginx/sites-available/peertube sudo sed -i 's/${PEERTUBE_HOST}/127.0.0.1:9000/g' /etc/nginx/sites-available/peertube ``` -Then modify the webserver configuration file. Please pay attention to the `alias` keys of the static locations. -It should correspond to the paths of your storage directories (set in the configuration file inside the `storage` key). +Then modify the webserver configuration file. Please pay attention to: + * the `alias`, `root` and `rewrite` directives paths, the paths must correspond to your PeerTube filesystem location + * the `proxy_limit_rate` and `limit_rate` directives if you plan to stream high bitrate videos (like 4K at 60FPS) ```bash sudo vim /etc/nginx/sites-available/peertube