1 |
|
2 |
|
3 |
|
4 |
|
5 | 'use strict';
|
6 |
|
7 | const config = require('../serconf'),
|
8 | T = require('../tools');
|
9 |
|
10 | module.exports = () => {
|
11 | let gupackConfig;
|
12 | gupackConfig = T.getConfig() || {};
|
13 | gupackConfig['host'] = T.getArg('host') || gupackConfig['host'] || config.servers.host;
|
14 | gupackConfig['port'] = T.getArg('port') || gupackConfig['port'] || config.servers.port;
|
15 | gupackConfig['sport'] = T.getArg('sport') || gupackConfig['sport'] || config.servers.sport;
|
16 | gupackConfig['liveDelay'] = T.getArg('liveDelay') || gupackConfig['liveDelay'] || config.servers.liveDelay;
|
17 | gupackConfig['indexFile'] = gupackConfig['indexFile'] || config.indexFile.file;
|
18 | gupackConfig['proxy'] = gupackConfig['proxy'];
|
19 | return gupackConfig;
|
20 | };
|