mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-25 08:21:04 +00:00
50 lines
1.1 KiB
CoffeeScript
50 lines
1.1 KiB
CoffeeScript
path = require('path')
|
|
userHome = require('user-home')
|
|
helpers = require('./helpers/helpers')
|
|
|
|
CliConf = require('../cli-conf/cli-conf')
|
|
|
|
settings =
|
|
remoteUrl: 'https://staging.resin.io'
|
|
apiPrefix: '/ewa/'
|
|
|
|
dataPrefix: path.join(userHome, '.resin')
|
|
|
|
sshKeyWidth: 43
|
|
|
|
directories:
|
|
plugins: 'plugins'
|
|
os: 'os'
|
|
|
|
localConfig: '.resinconf'
|
|
|
|
files:
|
|
config: 'config'
|
|
|
|
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'
|
|
|
|
settings.directories = helpers.prefixObjectValuesWithPath(settings.dataPrefix, settings.directories)
|
|
settings.files = helpers.prefixObjectValuesWithPath(settings.dataPrefix, settings.files)
|
|
|
|
module.exports = new CliConf
|
|
keys:
|
|
userConfig: 'files.config'
|
|
localConfig: 'localConfig'
|
|
default: settings
|