ok lot of smtp minors

This commit is contained in:
lesion
2021-10-18 15:46:38 +02:00
parent 858d6b31c8
commit b63f22fd31
8 changed files with 76 additions and 35 deletions

View File

@@ -9,9 +9,9 @@ let config = {
port: 13120
},
log_level: 'debug',
log_path: path.resolve(process.env.cwd, 'logs'),
log_path: path.resolve(process.env.cwd || '', 'logs'),
db: {},
upload_path: path.resolve(process.env.cwd, 'uploads'),
upload_path: path.resolve(process.env.cwd || '', 'uploads'),
write (config_path= process.env.config_path || './config.json') {
return fs.writeFileSync(config_path, JSON.stringify(config, null, 2))
},