Wiki’s Configuration Search Path

Wiki looks for its configuration

1. in the command line arguments 2. in `config.json` in the current working directory 3. in `config.json` in the parent directory of the current working directory 4. in the current user's `~/.wiki/config.json` 5. in environment variables prefixed with `wiki_` 6. Defaults: `port`: `3000` `root`: `path.dirname(require.resolve('wiki-server'))` `home`: `'welcome-visitors'` `security_type`: `'./security'` `data`: `~/.wiki` `commons`: `~/.wiki/commons` `packageDir`: `path.resolve(path.join(__dirname, 'node_modules'))` `cookieSecret`: `require('crypto').randomBytes(64).toString('hex')`