| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 3 | xsi:noNamespaceSchemaLocation="http://www.coldboxframework.com/schema/config_3.0.0.xsd"> |
|---|
| 4 | <Settings> |
|---|
| 5 | |
|---|
| 6 | <!-- Application Setup--> |
|---|
| 7 | <Setting name="AppName" value="Your App Name here"/> |
|---|
| 8 | <!-- |
|---|
| 9 | YOU NEED TO UNCOMMENT AND FILL THIS OUT FOR REMOTE OPERATIONS |
|---|
| 10 | --> |
|---|
| 11 | <Setting name="AppMapping" value="/coldbox/ApplicationTemplateRemote"/> |
|---|
| 12 | <Setting name="EventName" value="event" /> |
|---|
| 13 | |
|---|
| 14 | <!-- Development Settings --> |
|---|
| 15 | <Setting name="DebugMode" value="true"/> |
|---|
| 16 | <Setting name="DebugPassword" value=""/> |
|---|
| 17 | <Setting name="ReinitPassword" value=""/> |
|---|
| 18 | <Setting name="HandlersIndexAutoReload" value="true"/> |
|---|
| 19 | <Setting name="ConfigAutoReload" value="false"/> |
|---|
| 20 | |
|---|
| 21 | <!-- Implicit Events --> |
|---|
| 22 | <Setting name="DefaultEvent" value="general.index"/> |
|---|
| 23 | <Setting name="RequestStartHandler" value=""/> |
|---|
| 24 | <Setting name="RequestEndHandler" value=""/> |
|---|
| 25 | <Setting name="ApplicationStartHandler" value="main.onAppInit"/> |
|---|
| 26 | <Setting name="SessionStartHandler" value=""/> |
|---|
| 27 | <Setting name="SessionEndHandler" value=""/> |
|---|
| 28 | |
|---|
| 29 | <!-- Extension Points --> |
|---|
| 30 | <Setting name="UDFLibraryFile" value="" /> |
|---|
| 31 | <Setting name="PluginsExternalLocation" value="" /> |
|---|
| 32 | <Setting name="ViewsExternalLocation" value=""/> |
|---|
| 33 | <Setting name="HandlersExternalLocation" value="" /> |
|---|
| 34 | <Setting name="RequestContextDecorator" value=""/> |
|---|
| 35 | |
|---|
| 36 | <!-- Error/Exception Handling --> |
|---|
| 37 | <Setting name="ExceptionHandler" value=""/> |
|---|
| 38 | <Setting name="onInvalidEvent" value=""/> |
|---|
| 39 | <Setting name="CustomErrorTemplate" value="" /> |
|---|
| 40 | |
|---|
| 41 | <!-- Application Aspects --> |
|---|
| 42 | <Setting name="HandlerCaching" value="false"/> |
|---|
| 43 | <Setting name="EventCaching" value="false"/> |
|---|
| 44 | |
|---|
| 45 | <Setting name="MessageboxStyleOverride" value="false" /> |
|---|
| 46 | <Setting name="ProxyReturnCollection" value="false"/> |
|---|
| 47 | <Setting name="FlashURLPersistScope" value="session"/> |
|---|
| 48 | </Settings> |
|---|
| 49 | |
|---|
| 50 | <!-- Complex Settings follow JSON Syntax. www.json.org. |
|---|
| 51 | *IMPORTANT: use single quotes in this xml file for JSON notation, ColdBox will translate it to double quotes. |
|---|
| 52 | --> |
|---|
| 53 | <YourSettings> |
|---|
| 54 | <!-- @YOURSETTINGS@ --> |
|---|
| 55 | </YourSettings> |
|---|
| 56 | |
|---|
| 57 | <!--Model Integration --> |
|---|
| 58 | <Models> |
|---|
| 59 | <ObjectCaching>true</ObjectCaching> |
|---|
| 60 | <DefinitionFile>config/ModelMappings.cfm</DefinitionFile> |
|---|
| 61 | <SetterInjection>false</SetterInjection> |
|---|
| 62 | <!-- |
|---|
| 63 | <ExternalLocation></ExternalLocation> |
|---|
| 64 | <DICompleteUDF>onDIComplete</DICompleteUDF> |
|---|
| 65 | <StopRecursion></StopRecursion> |
|---|
| 66 | <DebugMode>false</DebugMode> |
|---|
| 67 | <DebugLevel>TRACE</DebugLevel> --> |
|---|
| 68 | </Models> |
|---|
| 69 | |
|---|
| 70 | <!-- |
|---|
| 71 | ColdBox Logging via LogBox |
|---|
| 72 | Levels: -1=OFF,0=FATAL,1=ERROR,2=WARN,3=INFO,4=DEBUG,5=TRACE |
|---|
| 73 | --> |
|---|
| 74 | <LogBox> |
|---|
| 75 | <!-- Log to console --> |
|---|
| 76 | <Appender name="console" class="coldbox.system.logging.appenders.ConsoleAppender" /> |
|---|
| 77 | <!-- Log to ColdBox Files --> |
|---|
| 78 | <Appender name="coldboxfile" class="coldbox.system.logging.appenders.AsyncRollingFileAppender"> |
|---|
| 79 | <Property name="filePath">logs</Property> |
|---|
| 80 | <Property name="fileName">${AppName}</Property> |
|---|
| 81 | <Property name="autoExpand">true</Property> |
|---|
| 82 | <Property name="fileMaxSize">2000</Property> |
|---|
| 83 | <Property name="fileMaxArchives">2</Property> |
|---|
| 84 | </Appender> |
|---|
| 85 | <!-- Root Logger Definition --> |
|---|
| 86 | <Root levelMin="FATAL" levelMax="TRACE" appenders="*" /> |
|---|
| 87 | <!-- Category Definitions Below --> |
|---|
| 88 | </LogBox> |
|---|
| 89 | |
|---|
| 90 | <!-- Custom Conventions : You can override the framework wide conventions of the locations of the needed objects --> |
|---|
| 91 | <Conventions> |
|---|
| 92 | <handlersLocation>monitor/handlers</handlersLocation> |
|---|
| 93 | <layoutsLocation>monitor/layouts</layoutsLocation> |
|---|
| 94 | <viewsLocation>monitor/views</viewsLocation> |
|---|
| 95 | </Conventions> |
|---|
| 96 | |
|---|
| 97 | <!-- Layouts --> |
|---|
| 98 | <Layouts> |
|---|
| 99 | <DefaultLayout>Layout.Main.cfm</DefaultLayout> |
|---|
| 100 | </Layouts> |
|---|
| 101 | |
|---|
| 102 | <Interceptors> |
|---|
| 103 | <!-- USE ENVIRONMENT CONTROL --> |
|---|
| 104 | <Interceptor class="coldbox.system.interceptors.EnvironmentControl"> |
|---|
| 105 | <Property name='configFile'>config/environments.xml.cfm</Property> |
|---|
| 106 | </Interceptor> |
|---|
| 107 | <!-- USE AUTOWIRING --> |
|---|
| 108 | <Interceptor class="coldbox.system.interceptors.Autowire" /> |
|---|
| 109 | </Interceptors> |
|---|
| 110 | |
|---|
| 111 | </Config> |
|---|