balena-cli/lib/resin/settings.coffee

51 lines
1.1 KiB
CoffeeScript
Raw Normal View History

2014-11-17 19:40:16 +00:00
path = require('path')
2014-12-03 13:31:36 +00:00
userHome = require('user-home')
helpers = require('./helpers/helpers')
2014-12-05 14:53:59 +00:00
ConfJS = require('conf.js')
2014-11-17 19:40:16 +00:00
settings =
remoteUrl: 'https://staging.resin.io'
2014-11-18 14:11:07 +00:00
apiPrefix: '/ewa/'
2014-11-18 16:20:37 +00:00
2014-12-03 13:31:36 +00:00
dataPrefix: path.join(userHome, '.resin')
2014-11-20 18:00:39 +00:00
sshKeyWidth: 43
2014-12-11 19:51:22 +00:00
gitRemote: 'resin'
2014-11-18 15:37:29 +00:00
directories:
plugins: 'plugins'
os: 'os'
2014-12-05 14:53:59 +00:00
localConfig: '.resinconf'
2014-12-05 14:53:59 +00:00
files:
config: 'config'
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'
settings.directories = helpers.prefixObjectValuesWithPath(settings.dataPrefix, settings.directories)
settings.files = helpers.prefixObjectValuesWithPath(settings.dataPrefix, settings.files)
module.exports = new ConfJS
2014-12-05 14:53:59 +00:00
keys:
userConfig: 'files.config'
localConfig: 'localConfig'
default: settings