log/doc: --authentication

This commit is contained in:
bordun 2020-05-05 12:21:18 +02:00
parent 4d7ed54186
commit 7a4076f8a6
3 changed files with 5 additions and 1 deletions

View file

@ -122,6 +122,7 @@
- removed `--blank`, `--gui-only`, `--examples`
- hide `--disable-gpu` (cli-only)
- added cli-only `--cache-dir` and `--config-file`
- added `--authentication` option
- misc

View file

@ -104,6 +104,9 @@ The **server** can be configured with many options, either from a terminal or wi
Set file browsing root folder.
=== "authentication"
Restrict access to `user:password` (remote clients will be prompted for these credentials).
=== "instance-name"

View file

@ -92,7 +92,7 @@ module.exports = {
}
},
'remote-root': {type: 'string', describe: 'set remote file browsing root folder', file: {folder: true}},
'authentication': {type: 'string', describe: 'restrict access to "user:password"',
'authentication': {type: 'string', describe: 'restrict access to "user:password" (remote clients will be prompted for these credentials)',
check: (a, argv)=>{
return a.match(/[^:]*:[^:]+/) ? true : 'Auth must be a user:password pair.'
}