aboutsummaryrefslogtreecommitdiff
path: root/src/wizard.js
diff options
context:
space:
mode:
authorKana <[email protected]>2019-02-22 09:31:55 +0900
committerGitHub <[email protected]>2019-02-22 09:31:55 +0900
commit165f891686a9dd2fd0a31b98fdc477ba98fdf6e6 (patch)
tree545968e913d0b1df2fb8e62a33c38389f3e30092 /src/wizard.js
parentupdated package.json (diff)
downloadhost.fuwn.me-165f891686a9dd2fd0a31b98fdc477ba98fdf6e6.tar.xz
host.fuwn.me-165f891686a9dd2fd0a31b98fdc477ba98fdf6e6.zip
Update wizard.js
Diffstat (limited to 'src/wizard.js')
-rw-r--r--src/wizard.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/wizard.js b/src/wizard.js
index 3094488..2a6ec12 100644
--- a/src/wizard.js
+++ b/src/wizard.js
@@ -109,23 +109,33 @@ async function start() {
handle: 'ADMIN_PASSWORD'
},
{
+ type: 'interactive',
+ query: 'Which predefined database do you want to use?',
+ handle: 'DB_CLIENT',
+ symbol: '>',
+ menu: [
+ 'pg',
+ 'sqlite'
+ ]
+ },
+ {
type: 'input',
- query: 'Database host',
+ query: 'Database host (Ignore if you selected sqlite3):',
handle: 'DB_HOST'
},
{
type: 'input',
- query: 'Database user',
+ query: 'Database user (Ignore if you selected sqlite3):',
handle: 'DB_USER'
},
{
type: 'input',
- query: 'Database password',
+ query: 'Database password (Ignore if you selected sqlite3):',
handle: 'DB_PASSWORD'
},
{
type: 'input',
- query: 'Database name',
+ query: 'Database name (Ignore if you selected sqlite3):',
handle: 'DB_DATABASE'
}
];
@@ -138,7 +148,6 @@ async function start() {
ROUTE_PREFIX: '/api',
RATE_LIMIT_WINDOW: 2,
RATE_LIMIT_MAX: 5,
- DB_CLIENT: 'pg',
BLOCKED_EXTENSIONS: ['.jar', '.exe', '.msi', '.com', '.bat', '.cmd', '.scr', '.ps1', '.sh'],
UPLOAD_FOLDER: 'uploads',
SECRET: randomstring.generate(64),