Add config.yaml copy info in doc

This commit is contained in:
Chocobozzz 2021-01-04 10:29:08 +01:00
parent 027e308099
commit 4948dcdbeb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 9 additions and 2 deletions

View File

@ -75,14 +75,21 @@ $ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-l
### PeerTube configuration ### PeerTube configuration
Copy example configuration: Copy the default configuration file that contains the default configuration provided by PeerTube.
You **must not** update this file.
```
$ cd /var/www/peertube && sudo -u peertube cp peertube-latest/config/default.yaml.example config/default.yaml
```
Now copy the production example configuration:
``` ```
$ cd /var/www/peertube && sudo -u peertube cp peertube-latest/config/production.yaml.example config/production.yaml $ cd /var/www/peertube && sudo -u peertube cp peertube-latest/config/production.yaml.example config/production.yaml
``` ```
Then edit the `config/production.yaml` file according to your webserver Then edit the `config/production.yaml` file according to your webserver
configuration. configuration. Keys defined in `config/production.yaml` will override keys defined in `config/default.yaml`.
**PeerTube does not support webserver host change**. Even though [PeerTube CLI can help you to switch hostname](https://docs.joinpeertube.org/#/maintain-tools?id=update-hostjs) there's no official support for that since it is a risky operation that might result in unforeseen errors. **PeerTube does not support webserver host change**. Even though [PeerTube CLI can help you to switch hostname](https://docs.joinpeertube.org/#/maintain-tools?id=update-hostjs) there's no official support for that since it is a risky operation that might result in unforeseen errors.