From 4948dcdbeb4b097770167b50f2bddade6ae88370 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Jan 2021 10:29:08 +0100 Subject: Add config.yaml copy info in doc --- support/doc/production.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'support') diff --git a/support/doc/production.md b/support/doc/production.md index 90ae042a2..9df79f870 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -75,14 +75,21 @@ $ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-l ### 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 ``` 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. -- cgit v1.2.3