Use convict for configuration to make n8n easier to configure

This commit is contained in:
Jan Oberhauser
2019-07-21 19:47:41 +02:00
parent fbaf445bf8
commit d027545986
15 changed files with 234 additions and 114 deletions

View File

@@ -13,7 +13,7 @@ import {
getRepository,
} from "typeorm";
import * as config from 'config';
import * as config from './../config';
import {
@@ -40,7 +40,7 @@ export async function init(): Promise<IDatabaseCollections> {
entities = MongoDb;
connectionOptions = {
type: 'mongodb',
url: config.get('database.mongodbConfig.url') as string,
url: config.get('database.mongodb.connectionUrl') as string,
useNewUrlParser: true,
};
} else if (dbType === 'sqlite') {