Skip to content

Commit ad6add0

Browse files
Add --db-path config option
1 parent 1fb1a86 commit ad6add0

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ inbox
1111
.acl
1212
config.json
1313
settings
14-
db/
14+
.db/
1515
.nyc_output
1616
coverage

bin/lib/options.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ module.exports = [
4646
default: '/',
4747
prompt: true
4848
},
49+
{
50+
name: 'db-path',
51+
question: 'Path to the server metadata db directory (for users/apps etc)',
52+
default: './.db',
53+
prompt: true
54+
},
4955
{
5056
name: 'auth',
5157
help: 'Pick an authentication strategy for WebID: `tls` or `oidc`',
@@ -59,6 +65,7 @@ module.exports = [
5965
default: 'WebID-OpenID Connect',
6066
filter: (value) => {
6167
if (value === 'WebID-TLS') return 'tls'
68+
if (value === 'WebID-OpenID Connect') return 'oidc'
6269
},
6370
when: (answers) => {
6471
return answers.webid
@@ -133,7 +140,6 @@ module.exports = [
133140
default: '/proxy',
134141
prompt: true
135142
},
136-
137143
{
138144
name: 'file-browser',
139145
help: 'Type the URL of default app to use for browsing files (or use default)',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"express-session": "^1.11.3",
4444
"extend": "^3.0.0",
4545
"from2": "^2.1.0",
46-
"fs-extra": "^0.30.0",
46+
"fs-extra": "^2.1.0",
4747
"glob": "^7.1.1",
4848
"handlebars": "^4.0.6",
4949
"inquirer": "^1.0.2",
@@ -58,7 +58,7 @@
5858
"node-forge": "^0.6.38",
5959
"nodemailer": "^3.1.4",
6060
"nomnom": "^1.8.1",
61-
"oidc-auth-manager": "^0.1.0",
61+
"oidc-auth-manager": "^0.1.1",
6262
"oidc-op-express": "^0.0.3",
6363
"rdflib": "^0.12.3",
6464
"recursive-readdir": "^2.1.0",

0 commit comments

Comments
 (0)