2019-09-11 11:23:05 +02:00
|
|
|
const APP_PORT = process.env.PORT || 5000;
|
2019-09-05 14:24:29 +02:00
|
|
|
const APP_BASE_URL = process.env.APP_BASE_URL || "http://localhost";
|
|
|
|
|
|
2019-09-11 11:27:45 +02:00
|
|
|
const APP_URL =
|
|
|
|
|
process.env.NODE_ENV && process.env.NODE_ENV === "production"
|
|
|
|
|
? process.env.APP_URL || "http://market-alarm"
|
|
|
|
|
: process.env.APP_URL || `${APP_BASE_URL}:${APP_PORT}`;
|
2019-09-05 14:24:29 +02:00
|
|
|
|
2019-09-23 21:19:28 +02:00
|
|
|
const DEFAULT_TIMEZONE = "Europe/Sarajevo";
|
|
|
|
|
|
2019-09-26 17:30:06 +02:00
|
|
|
const CRAWLER_INTERVAL = parseInt(process.env.CRAWLER_INTERVAL) || 60;
|
|
|
|
|
|
2019-09-05 14:24:29 +02:00
|
|
|
module.exports = {
|
|
|
|
|
APP_PORT,
|
2019-09-23 21:19:28 +02:00
|
|
|
APP_URL,
|
2019-09-26 17:30:06 +02:00
|
|
|
DEFAULT_TIMEZONE,
|
|
|
|
|
CRAWLER_INTERVAL
|
2019-09-05 14:24:29 +02:00
|
|
|
};
|