budibase/packages/server/config.sample.js

34 lines
1.0 KiB
JavaScript
Raw Normal View History

2019-06-14 11:05:46 +02:00
module.exports = () => ({
2020-04-24 10:56:39 +02:00
// can be couch - if you have couchdb installed, or pouch for dev
database: "couch",
// not required if using pouch
couchDbConnectionString: "https://username:password@localhost:5984",
// a secret that is used to access admin endpoints
adminSecret: "a_big_long_secret",
2019-06-25 23:48:22 +02:00
// cookie signing keys,these are secret
keys: ["secret1", "secret1"],
2019-06-25 23:48:22 +02:00
// port for http server to listen on
port: 4001,
2019-07-13 11:35:57 +02:00
// path to where your appDefinition etc is stored (dev time)
latestPackagesFolder: "./",
2019-09-06 14:04:23 +02:00
// register plugins for master
extraMasterPlugins: {},
2019-09-06 14:04:23 +02:00
// make modifications to master's appdefinition - e.g. add plugins
customizeMaster: appDefinition => appDefinition,
2019-09-06 14:04:23 +02:00
// false for production - serves builder if true
dev: false,
2019-06-14 11:05:46 +02:00
// flags whethers your apps should make server requests to '/<your app name>/<the route>'
// should only be set to true if you are routed via a domain, and are rewriting
// the "your.domain.com" to "/<your app name>"
useAppRootPath: false,
})