forked from ro31337/libretaxi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings-sample.js
39 lines (31 loc) · 860 Bytes
/
settings-sample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import appRoot from 'app-root-path';
/**
* Settings
*
* @author Roman Pushkin (roman.pushkin@gmail.com)
* @date 2016-12-19
* @version 1.1
* @since 0.1.0
*/
export default class Settings {
/**
* Constructor.
*
* @param {Object} overrides - settings overrides. Useful for testing.
*/
constructor(overrides) {
// Firebase connection string
this.STATEFUL_CONNSTR = 'https://libretaxi-development.firebaseio.com/';
// path to Firebase credentials file
this.STATEFUL_CREDENTIALS_FILE = './libretaxi-development-credentials.json';
// Telegram token
this.TELEGRAM_TOKEN = '';
// default language
this.DEFAULT_LANGUAGE = 'en';
// log file
this.LOG_FILE = `${appRoot.path}/libretaxi.log`;
// maximum allowed radius for drivers
this.MAX_RADIUS = 10;
Object.assign(this, overrides);
}
}