mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-30 12:33:56 -06:00
Improve production guide
This commit is contained in:
parent
cb77bfcd0f
commit
6250e4ab1d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user