mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-27 14:49:25 +00:00
41 lines
871 B
CoffeeScript
41 lines
871 B
CoffeeScript
_ = require('lodash')
|
|
path = require('path')
|
|
userHome = require('user-home')
|
|
|
|
config =
|
|
|
|
# TODO: Should be configurable
|
|
remoteUrl: 'https://staging.resin.io'
|
|
apiPrefix: '/ewa/'
|
|
|
|
dataPrefix: path.join(userHome, '.resin')
|
|
|
|
sshKeyWidth: 43
|
|
|
|
directories:
|
|
plugins: 'plugins'
|
|
os: 'os'
|
|
|
|
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'
|
|
|
|
urls:
|
|
signup: '/signup'
|
|
preferences: '/preferences'
|
|
keys: '/user/keys'
|
|
identify: '/blink'
|
|
authenticate: '/login_'
|
|
applicationRestart: '/application/<%= id %>/restart'
|
|
sshKey: '/user/keys/<%= id %>'
|
|
download: '/download'
|
|
|
|
config.directories = _.object _.map config.directories, (value, key) ->
|
|
return [ key, path.join(config.dataPrefix, value) ]
|
|
|
|
module.exports = config
|