Current Configuration

http://cloudi.org (and http://ndforge.com) Configuration

% last updated on Fri Oct  3 21:09:04 UTC 2014 with CloudI 1.3.3
{acl, [
    {api,
     ["/cloudi/api/*"]},
    {files,
     ["/ndforge.com/*",
      "/cloudi.org/*",
      "/loadbalancer_health_check/*"]},
    {www,
     ["*/www.ndforge.com/*",
      "*/ndforge.com/*",
      "*/www.cloudi.org/*",
      "*/cloudi.org/*",
      "*/*/loadbalancer_health_check/index.html/get"]}
]}.
{services, [
    % CloudI Service API interface

    {internal,
     "/cloudi/api/",
     cloudi_service_api_requests,
     [],
     none,
     5000, 5000, 5000, undefined, undefined, 1, 5, 300, []},

    % ndforge.com files

    {internal,
     "/ndforge.com/",
     cloudi_service_filesystem,
     [{directory, "${HOME}/www/ndforge.com/"},
      {refresh, 900},     % 15 minutes
      {cache, refresh}],  % 7.5 minutes
     none,
     60000, 5000, 5000, [api], undefined, 4, 5, 300, []},

    % cloudi.org files

    {internal,
     "/cloudi.org/",
     cloudi_service_filesystem,
     [{directory, "${HOME}/www/cloudi.org/"},
      {refresh, 900},     % 15 minutes
      {cache, refresh}],  % 7.5 minutes
     none,
     1200000, 5000, 5000, [api], undefined, 4, 5, 300, []},

    % ec2 load-balancer health check

    {internal,
     "/loadbalancer_health_check/",
     cloudi_service_filesystem,
     [{directory, "${HOME}/www/private/"}],
     none,
     5000, 5000, 5000, [api], undefined, 1, 5, 300, []},

    % HTTP traffic

    {internal,
     "*/",
     cloudi_service_router,
     [{add_prefix, false},
      {destinations,
       [{"www.ndforge.com/*",
         [{parameters_allowed, true},
          {parameters_strict_matching, false},
          {parameters_selected, [2]},
          {service_names,
           ["/ndforge.com/*"]}]},
        {"ndforge.com/*",
         [{parameters_allowed, true},
          {parameters_strict_matching, false},
          {parameters_selected, [2]},
          {service_names,
           ["/ndforge.com/*"]}]},
        {"www.cloudi.org/*",
         [{parameters_allowed, true},
          {parameters_strict_matching, false},
          {parameters_selected, [2]},
          {service_names,
           ["/cloudi.org/*"]}]},
        {"cloudi.org/*",
         [{parameters_allowed, true},
          {parameters_strict_matching, false},
          {parameters_selected, [2]},
          {service_names,
           ["/cloudi.org/*"]}]},
        {"*/loadbalancer_health_check/index.html/get",
         [{parameters_allowed, true},
          {parameters_strict_matching, false},
          {service_names,
           ["/loadbalancer_health_check/index.html/get"]}]}
        ]}],
     lazy_closest,
     5000, 5000, 5000, [api], [files], 8, 5, 300,
     [{duo_mode, true},
      {dest_refresh_start, 3000}]},
    {internal,
     "/",
     cloudi_service_http_cowboy,
     [{use_client_ip_prefix, true},
      {use_host_prefix, true},
      {ip, {0, 0, 0, 0}}, {port, 8000}, {output, binary}],
     lazy_closest,
     5000, 5000, 5000, [api], [www], 1, 5, 300,
     [{duo_mode, true}]}

]}.
{nodes, [
    {discovery,
     [{ec2,
       [{access_key_id, "PUT_IT_HERE"},
        {secret_access_key, "PUT_IT_HERE"},
        {groups, ["www"]}]}]}
]}.
{logging, [
    {formatters,
     [{any,
       [{formatter, cloudi_core_i_logger},
        {formatter_config,
         [{mode, legacy}]}]},
      {['STDOUT'],
       [{formatter, cloudi_core_i_logger},
        {formatter_config,
         [{mode, legacy_stdout}]}]},
      {['STDERR'],
       [{formatter, cloudi_core_i_logger},
        {formatter_config,
         [{mode, legacy_stderr}]}]}]},
    {level, debug} % levels: off, fatal, error, warn, info, debug, trace
]}.