| 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
|---|
| 2 | <Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 3 | xsi:noNamespaceSchemaLocation="http://www.coldboxframework.com/schema/config_2.1.0.xsd"> |
|---|
| 4 | <Settings> |
|---|
| 5 | <!--The name of your application.--> |
|---|
| 6 | <Setting name="AppName" value="Your App Name here"/> |
|---|
| 7 | <!--Default Debugmode boolean flag (Set to false in production environments)--> |
|---|
| 8 | <Setting name="DebugMode" value="true" /> |
|---|
| 9 | <!--The Debug Password to use in order to activate/deactivate debugmode,activated by url actions --> |
|---|
| 10 | <Setting name="DebugPassword" value=""/> |
|---|
| 11 | <!--The fwreinit password to use in order to reinitialize the framework and application.Optional, else leave blank --> |
|---|
| 12 | <Setting name="ReinitPassword" value=""/> |
|---|
| 13 | <!--Default event name variable to use in URL/FORM etc. --> |
|---|
| 14 | <Setting name="EventName" value="event" /> |
|---|
| 15 | <!--This feature is enabled by default to permit the url dumpvar parameter--> |
|---|
| 16 | <Setting name="EnableDumpVar" value="true" /> |
|---|
| 17 | <!--Log Errors and entries on the coldfusion server logs, disabled by default if not used--> |
|---|
| 18 | <Setting name="EnableColdfusionLogging" value="false" /> |
|---|
| 19 | <!--Log Errors and entries in ColdBox's own logging facilities. You choose the location, finally per application logging.--> |
|---|
| 20 | <Setting name="EnableColdboxLogging" value="true" /> |
|---|
| 21 | <!--The absolute or relative path to where you want to store your log files for this application--> |
|---|
| 22 | <Setting name="ColdboxLogsLocation" value="logs" /> |
|---|
| 23 | <!--Default Event to run if no event is set or passed. Usually the event to be fired first (NOTE: use event handler syntax)--> |
|---|
| 24 | <Setting name="DefaultEvent" value="general.dspHome"/> |
|---|
| 25 | <!--Event Handler to run on the start of a request, leave blank if not used. Emulates the Application.cfc onRequestStart method --> |
|---|
| 26 | <Setting name="RequestStartHandler" value="main.onRequestStart"/> |
|---|
| 27 | <!--Event Handler to run at end of all requests, leave blank if not used. Emulates the Application.cfc onRequestEnd method--> |
|---|
| 28 | <Setting name="RequestEndHandler" value="main.onRequestEnd"/> |
|---|
| 29 | <!--Event Handler to run at the start of an application, leave blank if not used. Emulates the Application.cfc onApplicationStart method --> |
|---|
| 30 | <Setting name="ApplicationStartHandler" value="main.onAppInit"/> |
|---|
| 31 | <!--The Email address from which all outgoing framework emails will be sent. --> |
|---|
| 32 | <Setting name="OwnerEmail" value="myemail@gmail.com" /> |
|---|
| 33 | <!-- Enable Bug Reports to be emailed out, set to true by default if left blank |
|---|
| 34 | A sample template has been provided to you in includes/generic_error.cfm |
|---|
| 35 | --> |
|---|
| 36 | <Setting name="EnableBugReports" value="true"/> |
|---|
| 37 | <!--UDF Library To Load on every request for your views and handlers --> |
|---|
| 38 | <Setting name="UDFLibraryFile" value="" /> |
|---|
| 39 | <!--The event handler to execute on all framework exceptions. Event Handler syntax required.--> |
|---|
| 40 | <Setting name="ExceptionHandler" value="" /> |
|---|
| 41 | <!--What event to fire when an invalid event is detected--> |
|---|
| 42 | <Setting name="onInvalidEvent" value="" /> |
|---|
| 43 | <!--Full path from the application's root to your custom error page, else leave blank. --> |
|---|
| 44 | <Setting name="CustomErrorTemplate" value="" /> |
|---|
| 45 | <!--Messagebox Style Override. A boolean of wether to override the styles using your own css.--> |
|---|
| 46 | <Setting name="MessageboxStyleOverride" value="" /> |
|---|
| 47 | <!--Flag to Auto reload the internal handlers directory listing. False for production. --> |
|---|
| 48 | <Setting name="HandlersIndexAutoReload" value="true" /> |
|---|
| 49 | <!--Flag to auto reload the config.xml settings. False for production. --> |
|---|
| 50 | <Setting name="ConfigAutoReload" value="true" /> |
|---|
| 51 | <!-- Declare the custom plugins base invocation path, if used. You have to use dot notation.Example: mymapping.myplugins --> |
|---|
| 52 | <Setting name="MyPluginsLocation" value="" /> |
|---|
| 53 | <!--Flag to cache handlers. Default if left blank is true. --> |
|---|
| 54 | <Setting name="HandlerCaching" value="false"/> |
|---|
| 55 | <!--IOC Framework if Used, else leave blank--> |
|---|
| 56 | <Setting name="IOCFramework" value="" /> |
|---|
| 57 | <!--IOC Definition File Path, relative or absolute --> |
|---|
| 58 | <Setting name="IOCDefinitionFile" value="" /> |
|---|
| 59 | <!--IOC Object Caching, true/false. For ColdBox to cache your IoC beans--> |
|---|
| 60 | <Setting name="IOCObjectCaching" value="false" /> |
|---|
| 61 | </Settings> |
|---|
| 62 | |
|---|
| 63 | <!--Your Settings can go here, if not needed, use <YourSettings />. You can use these for anything you like. |
|---|
| 64 | <YourSettings> |
|---|
| 65 | <Setting name="MySetting" value="My Value"/> |
|---|
| 66 | </YourSettings> |
|---|
| 67 | --> |
|---|
| 68 | <YourSettings></YourSettings> |
|---|
| 69 | |
|---|
| 70 | <!--Optional,if blank it will use the CFMX administrator settings.--> |
|---|
| 71 | <MailServerSettings> |
|---|
| 72 | <MailServer></MailServer> |
|---|
| 73 | <MailPort></MailPort> |
|---|
| 74 | <MailUsername></MailUsername> |
|---|
| 75 | <MailPassword></MailPassword> |
|---|
| 76 | </MailServerSettings> |
|---|
| 77 | |
|---|
| 78 | <!--Emails to Send bug reports, you can create as many as you like |
|---|
| 79 | <BugEmail>myemail@gmail.com</BugEmail> |
|---|
| 80 | --> |
|---|
| 81 | <BugTracerReports></BugTracerReports> |
|---|
| 82 | |
|---|
| 83 | <!--List url dev environments, this determines your dev/pro environment for the framework--> |
|---|
| 84 | <DevEnvironments> |
|---|
| 85 | <url>dev</url> |
|---|
| 86 | <url>dev1</url> |
|---|
| 87 | </DevEnvironments> |
|---|
| 88 | |
|---|
| 89 | <!--Webservice declarations your use in your application, if not use, leave blank |
|---|
| 90 | Note that for the same webservice name you can have a development url and a production url. |
|---|
| 91 | <WebService name="TESTWS" URL="http://www.test.com/test.cfc?wsdl" DevURL="http://dev.test.com/test.cfc?wsdl" /> |
|---|
| 92 | --> |
|---|
| 93 | <WebServices></WebServices> |
|---|
| 94 | |
|---|
| 95 | <!--Declare Layouts for your application here--> |
|---|
| 96 | <Layouts> |
|---|
| 97 | <!--Declare the default layout, MANDATORY--> |
|---|
| 98 | <DefaultLayout>Layout.Main.cfm</DefaultLayout> |
|---|
| 99 | |
|---|
| 100 | <!--Default View, OPTIONAL |
|---|
| 101 | <DefaultView>home</DefaultView> |
|---|
| 102 | --> |
|---|
| 103 | |
|---|
| 104 | <!-- |
|---|
| 105 | Declare other layouts, with view assignments if needed, else do not write them |
|---|
| 106 | <Layout file="Layout.Popup.cfm" name="popup"> |
|---|
| 107 | <View>vwTest</View> |
|---|
| 108 | <View>vwMyView</View> |
|---|
| 109 | </Layout> |
|---|
| 110 | --> |
|---|
| 111 | </Layouts> |
|---|
| 112 | |
|---|
| 113 | <!--Internationalization and resource Bundle setup: |
|---|
| 114 | <i18N> |
|---|
| 115 | <DefaultResourceBundle>includes/main</DefaultResourceBundle> |
|---|
| 116 | <DefaultLocale>en_US</DefaultLocale> |
|---|
| 117 | <LocaleStorage>session</LocaleStorage> |
|---|
| 118 | </i18N> |
|---|
| 119 | --> |
|---|
| 120 | <i18N /> |
|---|
| 121 | |
|---|
| 122 | <!--Datasource Setup, you can then retreive a datasourceBean via the getDatasource("name") method: |
|---|
| 123 | <Datasource alias="MyDSNAlias" name="real_dsn_name" dbtype="mysql" username="" password="" /> |
|---|
| 124 | --> |
|---|
| 125 | <Datasources></Datasources> |
|---|
| 126 | |
|---|
| 127 | <!--ColdBox Object Caching Settings Overrides the Framework-wide settings |
|---|
| 128 | <Cache> |
|---|
| 129 | <ObjectDefaultTimeout>20</ObjectDefaultTimeout> |
|---|
| 130 | <ObjectDefaultLastAccessTimeout>5</ObjectDefaultLastAccessTimeout> |
|---|
| 131 | <ReapFrequency>1</ReapFrequency> |
|---|
| 132 | <MaxObjects>0</MaxObjects> |
|---|
| 133 | <FreeMemoryPercentageThreshold>0</FreeMemoryPercentageThreshold> |
|---|
| 134 | </Cache> |
|---|
| 135 | --> |
|---|
| 136 | |
|---|
| 137 | <!-- Interceptor Declarations |
|---|
| 138 | <Interceptors> |
|---|
| 139 | <CustomInterceptionPoints>comma-delimited list</CustomInterceptionPoints> |
|---|
| 140 | <Interceptor class="full class name"> |
|---|
| 141 | <Property name="myProp">value</Property> |
|---|
| 142 | <Property name="myArray">[1,2,3]</Property> |
|---|
| 143 | <Property name="myStruct">{ key1:1, key2=2 }</Property> |
|---|
| 144 | </Inteceptor> |
|---|
| 145 | <Interceptor class="no property" /> |
|---|
| 146 | </Interceptors> |
|---|
| 147 | --> |
|---|
| 148 | |
|---|
| 149 | </Config> |
|---|