log/doc: --authentication
This commit is contained in:
parent
f0bb17193d
commit
ce8d8dcbd9
3 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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.'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue