31b3e46b8f
https://twitter.com/vercel/status/1267650234236252161 The variables for the launchEditor feature were kept consistent with Create React App so it's probably a good idea for them to change them too: https://github.com/facebook/create-react-app/search?q=WINDOWS_FILE_NAME_WHITELIST Prior discussions on this topic: - https://github.com/hashicorp/consul/issues/7901 - https://github.com/styled-system/styled-system/issues/391 - https://github.com/go-sql-driver/mysql/pull/1116 - https://github.com/lagom/lagom/issues/2532 - https://github.com/grafana/grafana/issues/18841
95 lines
3.5 KiB
JavaScript
95 lines
3.5 KiB
JavaScript
const path = require('path')
|
|
|
|
exports['default'] = {
|
|
general: (api) => {
|
|
const packageJSON = require(api.projectRoot + path.sep + 'package.json')
|
|
|
|
return {
|
|
apiVersion: packageJSON.version,
|
|
serverName: packageJSON.name,
|
|
// id can be set here, or it will be generated dynamically.
|
|
// Be sure that every server you run has a unique ID (which will happen when generated dynamically)
|
|
// id: 'myActionHeroServer',
|
|
// A unique token to your application that servers will use to authenticate to each other
|
|
serverToken: 'change-me',
|
|
// the redis prefix for actionhero's cache objects
|
|
cachePrefix: 'actionhero:cache:',
|
|
// the redis prefix for actionhero's cache/lock objects
|
|
lockPrefix: 'actionhero:lock:',
|
|
// how long will a lock last before it exipres (ms)?
|
|
lockDuration: 1000 * 10, // 10 seconds
|
|
// Watch for changes in actions and tasks, and reload/restart them on the fly
|
|
developmentMode: true,
|
|
// How many pending actions can a single connection be working on
|
|
simultaneousActions: 5,
|
|
// allow connections to be created without remoteIp and remotePort (they will be set to 0)
|
|
enforceConnectionProperties: true,
|
|
// disables the access list of client params
|
|
disableParamScrubbing: false,
|
|
// params you would like hidden from any logs
|
|
filteredParams: [],
|
|
// values that signify missing params
|
|
missingParamChecks: [null, '', undefined],
|
|
// The default filetype to server when a user requests a directory
|
|
directoryFileType: 'index.html',
|
|
// What log-level should we use for file requests?
|
|
fileRequestLogLevel: 'info',
|
|
// The default priority level given to middleware of all types (action, connection, say, and task)
|
|
defaultMiddlewarePriority: 100,
|
|
// Which channel to use on redis pub/sub for RPC communication
|
|
channel: 'actionhero',
|
|
// How long to wait for an RPC call before considering it a failure
|
|
rpcTimeout: 5000,
|
|
// should CLI methods and help include internal ActionHero CLI methods?
|
|
cliIncludeInternal: true,
|
|
// configuration for your actionhero project structure
|
|
paths: {
|
|
action: [path.join(__dirname, '/../actions')],
|
|
task: [path.join(__dirname, '/../tasks')],
|
|
public: [path.join(__dirname, '/../static')],
|
|
pid: [path.join(__dirname, '/../pids')],
|
|
log: [path.join(__dirname, '/../log')],
|
|
server: [path.join(__dirname, '/../servers')],
|
|
cli: [path.join(__dirname, '/../bin')],
|
|
initializer: [path.join(__dirname, '/../initializers')],
|
|
plugin: [path.join(__dirname, '/../node_modules')],
|
|
locale: [path.join(__dirname, '/../locales')],
|
|
},
|
|
// hash containing chat rooms you wish to be created at server boot
|
|
startingChatRooms: {
|
|
// format is {roomName: {authKey, authValue}}
|
|
// 'secureRoom': {authorized: true},
|
|
},
|
|
}
|
|
},
|
|
}
|
|
|
|
exports.test = {
|
|
general: (api) => {
|
|
return {
|
|
id: 'test-server-' + process.pid,
|
|
serverToken: 'serverToken-' + process.pid,
|
|
developmentMode: true,
|
|
startingChatRooms: {
|
|
defaultRoom: {},
|
|
otherRoom: {},
|
|
},
|
|
paths: {
|
|
locale: [
|
|
// require('os').tmpdir() + require('path').sep + 'locales',
|
|
path.join(__dirname, '/../locales'),
|
|
],
|
|
},
|
|
rpcTimeout: 3000,
|
|
}
|
|
},
|
|
}
|
|
|
|
exports.production = {
|
|
general: (api) => {
|
|
return {
|
|
fileRequestLogLevel: 'debug',
|
|
developmentMode: false,
|
|
}
|
|
},
|
|
}
|