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

@@ -1,6 +1,6 @@
import Vorpal = require('vorpal');
import { Args } from 'vorpal';
import * as config from 'config';
import * as config from '../config';
const open = require('open');
@@ -105,7 +105,7 @@ flag "--init" to fix this problem!`);
subdomain: userSettings.tunnelSubdomain,
};
const port = config.get('urls.port') as number;
const port = config.get('port') as number;
// @ts-ignore
const webhookTunnel = await tunnel(port, tunnelSettings);