balena-cli/lib/resin/settings.coffee

50 lines
1.1 KiB
CoffeeScript
Raw Normal View History

2014-11-17 15:40:16 -04:00
path = require('path')
2014-12-03 09:31:36 -04:00
userHome = require('user-home')
helpers = require('./helpers/helpers')
2014-12-05 10:53:59 -04:00
CliConf = require('../cli-conf/cli-conf')
2014-11-17 15:40:16 -04:00
settings =
remoteUrl: 'https://staging.resin.io'
2014-11-18 10:11:07 -04:00
apiPrefix: '/ewa/'
2014-11-18 12:20:37 -04:00
2014-12-03 09:31:36 -04:00
dataPrefix: path.join(userHome, '.resin')
2014-11-20 14:00:39 -04:00
sshKeyWidth: 43
2014-11-18 11:37:29 -04:00
directories:
plugins: 'plugins'
os: 'os'
2014-12-05 10:53:59 -04:00
localConfig: '.resinconf'
2014-12-05 10:53:59 -04:00
files:
config: 'config'
2014-11-28 12:46:24 -04: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 10:11:00 -04:00
urls:
signup: '/signup'
preferences: '/preferences'
keys: '/user/keys'
identify: '/blink'
authenticate: '/login_'
applicationRestart: '/application/<%= id %>/restart'
sshKey: '/user/keys/<%= id %>'
2014-12-01 11:41:14 -04:00
download: '/download'
settings.directories = helpers.prefixObjectValuesWithPath(settings.dataPrefix, settings.directories)
settings.files = helpers.prefixObjectValuesWithPath(settings.dataPrefix, settings.files)
2014-12-05 10:53:59 -04:00
module.exports = new CliConf
keys:
userConfig: 'files.config'
localConfig: 'localConfig'
default: settings