1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 14:28:49 +09:00
This commit is contained in:
syuilo 2018-04-15 17:29:32 +09:00
parent 2d7525b2f6
commit 39bf3b7d72

View File

@ -121,12 +121,6 @@ inquirer.prompt(form).then(as => {
},
url: as['url'],
port: parseInt(as['port'], 10),
https: {
enable: as['https'],
key: as['https_key'] || null,
cert: as['https_cert'] || null,
ca: as['https_ca'] || null
},
mongodb: {
host: as['mongo_host'],
port: parseInt(as['mongo_port'], 10),
@ -151,6 +145,14 @@ inquirer.prompt(form).then(as => {
}
};
if (as['https']) {
conf.https = {
key: as['https_key'] || null,
cert: as['https_cert'] || null,
ca: as['https_ca'] || null
};
}
console.log(`Thanks. Writing the configuration to ${chalk.bold(path.resolve(configPath))}`);
try {