Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created December 30, 2012 18:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcameron/4414194 to your computer and use it in GitHub Desktop.
Save adamcameron/4414194 to your computer and use it in GitHub Desktop.
Coldbox.cfc for Brad / Coldbox forum bods
component{
public void function configure(){
variables.coldbox = {
appName = application.applicationName, // I'm not over the moon about this break of encapsulation, but equally I want to be as DRY as possible. I dunno why I need to specify this (again)
appHomeUrl = "http://#CGI.http_host##CGI.script_name#",
defaultEvent = "bug.main",
// TODO: get rid once I understand what's going on
HandlersIndexAutoReload = true,
handlerCaching = false,
debugMode = false
};
variables.flash = {
scope = "coldbox.system.web.flash.ColdboxCacheFlash"
};
variables.layoutSettings = {
defaultLayout = "html5.cfm",
defaultView = "main/default"
};
interceptors = [
{
class = "coldbox.system.interceptors.Security",
name = "ApplicationSecurity",
properties = {
rulesSource = "xml",
rulesFile = "config/security.xml"
}
}
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment