33 lines
1.0 KiB
CoffeeScript
33 lines
1.0 KiB
CoffeeScript
exports.INIT_TIMESTAMP = new Date(1983, 9, 16) # arbitrary date
|
|
exports.DATABASE_NAME = 'genie'
|
|
exports.ACS_PORT = 7547 # CWMP port as assigned by IANA
|
|
exports.ACS_HTTPS_PORT = 7548
|
|
exports.ACS_INTERFACE = '0.0.0.0'
|
|
exports.ACS_HTTPS_INTERFACE = '0.0.0.0'
|
|
exports.API_PORT = 7557
|
|
exports.API_INTERFACE = '0.0.0.0'
|
|
exports.FILES_PORT = 7567
|
|
exports.FILES_INTERFACE = '0.0.0.0'
|
|
exports.FILES_IP = '172.240.21.2' # Used when sending download requests to devices
|
|
exports.CACHE_DURATION = 60 # in seconds
|
|
exports.PRESETS_CACHE_DURATION = 86400
|
|
exports.PRESETS_TIME_PADDING = 1
|
|
exports.MONGODB_SOCKET = '/tmp/mongodb-27017.sock'
|
|
exports.MEMCACHED_SOCKET = '/tmp/memcached.sock'
|
|
exports.WORKER_RESPAWN_TIME = 3000
|
|
exports.LOG_INFORMS = false
|
|
exports.DEBUG_DEVICES = {} # {'202BC1-BM632w-8KA8WA1151100043' : true}
|
|
exports.DEVICE_ONLINE_THRESHOLD = 4000
|
|
|
|
parameters = require './parameters'
|
|
aliases = {}
|
|
for k,v of parameters
|
|
a = v.alias
|
|
if a?
|
|
if not aliases[a]?
|
|
aliases[a] = []
|
|
aliases[a].push(k)
|
|
|
|
exports.PARAMETERS = parameters
|
|
exports.ALIASES = aliases
|