UNPKG

buckets

Version:

Manage content better.

69 lines (34 loc) 2.21 kB
# Buckets Configuration Buckets provides a few ways to set configuration options when starting up. You can provide these settings directly to the `buckets` function, or you can set ENV variables. Buckets will also look for two JSON files at the root of your project, both a `config.json` and an `_environment_.json` (where environment is whatever environment is currently active). Here are the settings: ## Guide ### name `process.env.GLOBAL_NAME` _default_ ## Settings ### autoStart _true_ Set to false to include Buckets as Middleware. ### adminSegment _'admin'_ The URL segment at which the server will serve the Buckets admin interface. ### apiSegment _'api'_ The URL segment at which the server will serve the Buckets [API](../api/). ### buildsPath _'./builds'_ The file to where builds are stored (Buckets will look for a "staging" directory here, the others are created on the fly). This is going to be better. ### cloudinary `CLOUDINARY_URL` The connection URL for [Cloudinary](http://cloudinary.com/). Set up for default Heroku installation. ### db `MONGOHQ_URL` _'mongodb://localhost/buckets_#{env}'_ A MongoDB connection string. The env variable is set up for a default Heroku installation. ### env `NODE_ENV` _'development'_ [production|development|test] The app environment. ### fastlyApiKey `FASTLY_API_KEY` Fastly CDN support for a default Heroku installation. ### fastlyServiceId `FASTLY_SERVICE_ID` ### fastlyCdnUrl `FASTLY_CDN_URL` ### port `PORT` _3000_ Port at which Buckets serves the website. ### logLevel _'info'_ The level at which the logger reports. Possible values are "none", "debug", "verbose", "info", "warn", and "error". ### pluginsPath _'./node_modules/'_ Path to where plugins are loaded from. All plugins are node modules with a naming convention of "buckets-_name_". #### smtp.service _'gmail' (or `mandrill` in production)_ For local development, you can use a Gmail username/password (or [any other format supported by Nodemailer](https://github.com/andris9/nodemailer-wellknown#supported-services)). For our default Heroku setup, we currently support Mandrill. #### smtp.auth.user `MANDRILL_USERNAME` #### smtp.auth.pass `MANDRILL_APIKEY`