mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-24 15:56:38 +00:00
51 lines
1.1 KiB
CoffeeScript
51 lines
1.1 KiB
CoffeeScript
path = require('path')
|
|
userHome = require('user-home')
|
|
helpers = require('./helpers/helpers')
|
|
|
|
ConfJS = require('conf.js')
|
|
|
|
settings =
|
|
remoteUrl: 'https://staging.resin.io'
|
|
apiPrefix: '/ewa/'
|
|
|
|
dataPrefix: path.join(userHome, '.resin')
|
|
|
|
sshKeyWidth: 43
|
|
gitRemote: 'resin'
|
|
|
|
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 ConfJS
|
|
keys:
|
|
userConfig: 'files.config'
|
|
localConfig: 'localConfig'
|
|
default: settings
|