forked from ro31337/libretaxi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings-sample.js
43 lines (34 loc) · 996 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
40
41
42
43
import appRoot from 'app-root-path';
/**
* Settings
*
* @author Roman Pushkin ([email protected])
* @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;
// geocoding api key, see
// https://developers.google.com/maps/documentation/geocoding/intro
this.GEOCODING_API_KEY = '';
Object.assign(this, overrides);
}
}