balena-cli/lib/resin/config.coffee

35 lines
805 B
CoffeeScript
Raw Normal View History

2014-11-17 19:40:16 +00:00
path = require('path')
2014-11-18 15:37:29 +00:00
config =
2014-10-31 15:59:23 +00:00
# TODO: Should be configurable
remoteUrl: 'https://staging.resin.io'
2014-11-18 14:11:07 +00:00
apiPrefix: '/ewa/'
2014-11-18 16:20:37 +00:00
# TODO: Check if not running on UNIX environment
# and add a custom path accordingly
2014-11-17 19:40:16 +00:00
dataPrefix: path.join(process.env.HOME, '.resin')
2014-11-20 18:00:39 +00:00
sshKeyWidth: 43
2014-11-18 15:37:29 +00:00
2014-11-28 16:46:24 +00:00
pubnub:
subscribe_key: 'sub-c-bbc12eba-ce4a-11e3-9782-02ee2ddab7fe'
publish_key: 'pub-c-6cbce8db-bfd1-4fdf-a8c8-53671ae2b226'
ssl: true
events:
deviceLogs: 'device-<%= uuid %>-logs'
2014-12-01 14:11:00 +00:00
urls:
signup: '/signup'
preferences: '/preferences'
keys: '/user/keys'
identify: '/blink'
authenticate: '/login_'
applicationRestart: '/application/<%= id %>/restart'
sshKey: '/user/keys/<%= id %>'
2014-12-01 15:41:14 +00:00
download: '/download'
2014-12-01 14:11:00 +00:00
config.pluginsDirectory = path.join(config.dataPrefix, 'plugins')
2014-11-18 15:37:29 +00:00
module.exports = config