{
  // CGRateS Configuration file


  "general": {
    "reply_timeout": "30s",
    "caching_delay": "1s",
  },

  "logger": {
    "level": 7
  },

  "listen": {
    "rpc_json": ":2012",
    "rpc_gob": ":2013",
    "http": ":2080",
  },


  "db": {
    "db_conns": {
		"*default": {
      "db_type": "mongo",
      "db_host": "127.0.0.1",	
      "db_port": 27017,
      "db_name": "10",
			"db_user": "cgrates"
	    },
      "StorDB": {						 // The id of the DB connection
        "db_type": "mongo",			 // db type: <internal|redis|mysql|mongo|postgres>
        "db_host": "127.0.0.1",	
        "db_port": 27017,			 // db port to reach the database
        "db_name": "cgrates",		 // the host to connect to
        "db_user": "cgrates"
      }
    },
    "items": {
      "*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"}
    }
  },

  "cdrs": {
    "enabled": true,
    "chargers_conns":["*internal"],
  },


  "attributes": {
    "enabled": true,
    "stats_conns": ["*localhost"],
    "resources_conns": ["*localhost"],
    "accounts_conns": ["*localhost"]
  },


  "chargers": {
    "enabled": true,
    "attributes_conns": ["*internal"],
  },


  "resources": {
    "enabled": true,
    "store_interval": "1s",
    "thresholds_conns": ["*internal"]
  },


  "stats": {
    "enabled": true,
    "store_interval": "1s",
    "thresholds_conns": ["*internal"],
  },


  "thresholds": {
    "enabled": true,
    "store_interval": "1s",
  },


  "routes": {
    "enabled": true,
    "prefix_indexed_fields":["*req.Destination"],
    "stats_conns": ["*internal"],
    "resources_conns": ["*internal"],
    "rates_conns": ["*internal"],
  },


  "sessions": {
    "enabled": true,
    "routes_conns": ["*internal"],
    "resources_conns": ["*internal"],
    "attributes_conns": ["*internal"],
    "rates_conns": ["*internal"],
    "cdrs_conns": ["*internal"],
    "chargers_conns": ["*internal"],
  },


  "migrator": {
    "out_datadb_type": "mongo",
    "out_datadb_port": "27017",
    "out_datadb_name": "10",
    "users_filters":["Account"],
  },


  "admins": {
    "enabled": true,
  },


  "rates": {
    "enabled": false
  },



  "actions": {
    "enabled": true,
    "accounts_conns": ["*localhost"]
  },


  "accounts": {
    "enabled": true
  },


  "filters": {
    "stats_conns": ["*internal"],
    "resources_conns": ["*internal"],
    "accounts_conns": ["*internal"],
  },

  "config_db": {
    "db_type": "mongo",
    "db_name": "16",
    "db_port": 27017,
  },

  "loaders": [
    {
      "id": "*default",
      "enabled": true,
      "tenant": "cgrates.org",
      "lockfile_path": ".cgr.lck",
      "tp_in_dir": "/usr/share/cgrates/tariffplans/testit",
      "tp_out_dir": ""
    }
  ]
}
