Update wizard.js

This commit is contained in:
Kana 2019-02-22 09:31:55 +09:00 committed by GitHub
parent 500eb4f9a0
commit 165f891686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 5 deletions

View File

@ -108,24 +108,34 @@ async function start() {
query: 'Type a secure password for the root user:',
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),