Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Included override multiexcerpt

...

The type key is the project type.  Values can be apiblockconnector, or model. By default, API Builder sets this property when you generate a new project. You should not need to change the value.

Configuration override

Since Release 5.0.0, you can override the configuration file settings with an environment variable. For the setting, you want to override, prefix the variable with ARROW_. For example, if you want to override the apikey setting, set the ARROW_APIKEY environment variable.

Example

Code Block
title./conf/foo.js
module.exports = {
    // These are generated when you create a new project
    apikey_production: 'xxxxxxxxxxxxxxxxxxxxxxxxx',
    apikey_development: 'yyyyyyyyyyyyyyyyyyyyyyyyy',
 
    // Selects the authorization type -- uses HTTP Basic Authorization by default
    APIKeyAuthType: 'basic',
 
    // All API paths will be prefixed with '/foo'
    apiPrefix: '/foo',
 
    // Sets body-parser middleware setting
    bodyParser: {
        limit: 1 * 1024 * 1024
    },
 
    // Sets busboy initialization settings
    busboy: {
        limit: {
            fieldNameSize: 100,
            fieldSize: 1 * 1024 * 1024
        } 
    },
 
    // Connector settings...
    connectors: {
        connector_name: {
            collection: 'foobar'
        },
        another_connector: {
            name: 'foobaz'
        }
    },
 
    // et cetera
}

Multiexcerpt include
MultiExcerptNameoverride
PageWithExcerptConsole Configuration