Environmental overrides in coldbox.cfc

I have a custom setting that is a complex setting:

settings = {
     fooService = {
          fooURL1 = "http://anywhere.com"
          ,fooURL2 = "http://anywhere2.com"
     }
}

When I try to override the complex setting, I don't seem to be able to
do it from within the function dev()

I have tried:
var overrides = {
  debugMode = true,
  debugPassword = "",
  reinitPassword = "",
  handlersIndexAutoReload = true,
  configAutoReload = true,
  fooService = {
    fooURL1 = "http://x.com"
    fooURL2 = "http://y.com"
  }
};
structAppend(coldbox, overrides, true);

Also tried:
  var overrides = {
    debugMode = true,
    debugPassword = "",
    reinitPassword = "",
    handlersIndexAutoReload = true,
    configAutoReload = true,
  };
  var foo = {
    fooURL1 = "http://x.com"
    fooURL2 = "http://y.com"
  }
  structAppend(coldbox,overrides,true);
  structAppend(coldbox.fooService, foo, true);

and tried
  coldbox.fooService.fooURL1 = "http://x.com";
  coldbox.fooService.fooURL2 = "http://y.com";

I have found that I can do it outside of the config cfc, so I can set
it with
  var foo = {
    fooURL1 = "http://x.com"
    fooURL2 = "http://y.com"
  }
  setSetting("fooService", foo);

So I don't know if doing complex settings is a bad idea and I should
just break them into 2 individual settings but I did like being able
to drop the dsl struct on my property in model.

Thanks for your feedback.

Jade Cady

Thee are several key structures and array definitions in the main
config. You are trying to append all of them to the coldbox strucutrr.
This won't work as the coldbox structure is for coldbox directives
only and what you want to iverrride is the settings structure whichbis
another one. So just override accordingly