mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
making info api port configurable
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"interval": 1,
|
||||
"infoApi": true,
|
||||
"infoApiPort": 9998,
|
||||
"jobs": {
|
||||
"yourSearchJob": {
|
||||
"notification": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const bodyParser = require('body-parser');
|
||||
const config = require('../../conf/config');
|
||||
const { getLastJobExecution, getLastProviderExecution, getTotalNumberOfListings } = require('../services/store');
|
||||
const PORT = 9998;
|
||||
const PORT = config.infoApiPort || 9998;
|
||||
const service = require('restana')();
|
||||
const enabled = config.infoApi == null ? false : config.infoApi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user