diff --git a/CHANGELOG.md b/CHANGELOG.md index 284b78de..ee59d2dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/resources/docs/docs/getting-started/server-configuration.md b/resources/docs/docs/getting-started/server-configuration.md index dc12cb9b..a10ad006 100644 --- a/resources/docs/docs/getting-started/server-configuration.md +++ b/resources/docs/docs/getting-started/server-configuration.md @@ -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" diff --git a/src/server/options.js b/src/server/options.js index 269ca26c..cc7ba3ae 100644 --- a/src/server/options.js +++ b/src/server/options.js @@ -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.' }