/**
 * @file Defines the provider settings.
 *
 * Will set the path to Mongo, and applications id
 * Most of the configuration can be done using system environment variables.
 */

// Load environment variables from .env file
var dotenv = require('dotenv');
dotenv.load();

// node_env can either be "development" or "production"
var node_env = process.env.NODE_ENV || "development";

// Port to run the app on. 8000 for development
// (Vagrant syncs this port)
// 80 for production
var default_port = 8000;
if(node_env === "production") {
  default_port = 80;
}

// Exports configuration for use by app.js
module.exports = {
  env: node_env,
  port: process.env.PORT || default_port,
  maxConcurrency: process.env.SALESFORCE_CONCURRENCY || 1,

  salesforceId: process.env.SALESFORCE_API_ID,
  salesforceSecret: process.env.SALESFORCE_API_SECRET,

  providerUrl: process.env.PROVIDER_URL,
  appId: process.env.ANYFETCH_API_ID,
  appSecret: process.env.ANYFETCH_API_SECRET,

  testRefreshToken: process.env.SALESFORCE_TEST_REFRESH_TOKEN,

  kue: {
    attempts: 2,
    backoff: {delay: 20 * 1000, type: 'fixed'}
  },

  opbeat: {
    organizationId: process.env.OPBEAT_ORGANIZATION_ID,
    appId: process.env.OPBEAT_APP_ID,
    secretToken: process.env.OPBEAT_SECRET_TOKEN
  }
};

@@ -1036,82 +1036,41 @@
 %0A%0A  
-kue: %7B%0A    attempts: 2,%0A    backoff: %7Bdelay: 20 * 1000, type: 'fixed'%7D%0A  %7D
+retry: 2,%0A  retryDelay: 20 * 1000
 ,%0A%0A 

Update config