From 3daaa1927474869f8dbaddd6b94b4c071e314e10 Mon Sep 17 00:00:00 2001 From: Axel Viala Date: Wed, 15 May 2019 00:18:48 +0200 Subject: Add way to set root password by environment. Add a condition test to pass by environment a predetermined root password for setting up. --- support/doc/production.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'support/doc') diff --git a/support/doc/production.md b/support/doc/production.md index 2eba6e6a3..4f20cf140 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -204,6 +204,9 @@ logs. You can set another password with: $ cd /var/www/peertube/peertube-latest && NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run reset-password -- -u root ``` +Alternatively you can set the environment variable `PT_INITIAL_ROOT_PASSWORD`, +to your own administrator password, although it must be 6 characters or more. + ### What now? Now your instance is up you can: -- cgit v1.2.3