Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If multiple files set the same keys, the value from the last file loaded will be used unless its an environment-specific file. Files are loaded based on the order returned from the OS's readdir() method. For example, if Foo.js and foo.development.js set the same key, the value in Foo.js is used since it is not environment specific. However, if Foo.development.js and foo.development.js set the same key, the value from foo.development.js is used since it is loaded last.

Multiexcerpt
MultiExcerptNameoverride

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
}

Settings

admin

Configures the Admin Console. The admin object may contain the following key-value pairs:

Multiexcerpt
MultiExcerptNameadmin
KeyTypeDefaultDescription
allowedHostsArray<String>-When the application is in production, restrict access to the Admin Console to the specified hosts
disableAPIDocBooleanfalseSet to true to not display the generated API Docs. Changing the setting only works in production. Swagger is always available in dev mode.
enabledBooleantrueSet to true to enable the Admin Console.

validEmails

Array<String>developer's e-mail addressWhen the application is in production, restrict access to the Admin Console to the specified accounts.

validOrgs

Array<Number>developer's organizationWhen the application is in production, restrict access to the Admin Console to the specified organizations.

...