root/codedepot/trunk/projects/ColdBox-3.0-Upgrader/AppTemplate/config/coldbox.xml.cfm @ 2077

Revision 2077, 12.7 kB (checked in by lmajano, 4 years ago)

The start of the groovy 3.0 upgrader

Line 
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_2.6.0.xsd">
4        <Settings>
5                <!--The name of your application.-->
6                <Setting name="AppName"                                         value="Your App Name here"/>
7                <!-- ColdBox set-up information for J2EE installation.
8                     As context-root are actually virtual locations which does not correspond to physical location of files. for example
9                     /openbd   /var/www/html/tomcat/deploy/bluedragon
10
11                     AppMapping setting will adjust physical location of Project/App files and coldbox will load handlers,plugis,config file etc
12                     Create a cf mapping and enable this value.
13                     /MyApp /var/www/html/tomcat/deploy/bluedragon/MyAppFolder
14               
15                If you are using a coldbox app to power flex/remote apps, you NEED to set the AppMapping also. In Summary,
16                the AppMapping is either a CF mapping or the path from the webroot to this application root. If this setting
17                is not set, then coldbox will try to auto-calculate it for you. Please read the docs.
18               
19                <Setting name="AppMapping"                                      value="/MyApp"/>     
20               
21                -->
22                <!--Default Debugmode boolean flag (Set to false in production environments)-->
23                <Setting name="DebugMode"                                       value="true" />
24                <!--The Debug Password to use in order to activate/deactivate debugmode,activated by url actions -->
25                <Setting name="DebugPassword"                           value=""/>
26                <!--The fwreinit password to use in order to reinitialize the framework and application.Optional, else leave blank -->
27                <Setting name="ReinitPassword"                          value=""/>
28                <!--Default event name variable to use in URL/FORM etc. -->
29                <Setting name="EventName"                                       value="event" />
30                <!--This feature is enabled by default to permit the url dumpvar parameter-->
31                <Setting name="EnableDumpVar"                           value="true" />
32                <!--Log Errors and entries on the coldfusion server logs, disabled by default if not used-->
33                <Setting name="EnableColdfusionLogging"         value="false" />
34                <!--Log Errors and entries in ColdBox's own logging facilities. You choose the location, finally per application logging.-->
35                <Setting name="EnableColdboxLogging"            value="true" />
36                <!--The absolute or relative path to where you want to store your log files for this application-->
37                <Setting name="ColdboxLogsLocation"                     value="logs" />
38               
39                <!-- 
40                The default logging level to use. Defaults to all = 4 valid numbers are 0-4
41                0-fatal,1-error,2-warning,3-information,4-debug
42                <Setting name="DefaultLogLevel"                         value="4" />
43                -->
44               
45                <!--Default Event to run if no event is set or passed. Usually the event to be fired first (NOTE: use event handler syntax)-->
46                <Setting name="DefaultEvent"                            value="general.index"/>
47                <!--Event Handler to run on the start of a request, leave blank if not used. Emulates the Application.cfc onRequestStart method -->
48                <Setting name="RequestStartHandler"             value="main.onRequestStart"/>
49                <!--Event Handler to run at end of all requests, leave blank if not used. Emulates the Application.cfc onRequestEnd method-->
50                <Setting name="RequestEndHandler"                       value=""/>
51                <!--Event Handler to run at the start of an application, leave blank if not used. Emulates the Application.cfc onApplicationStart method        -->
52                <Setting name="ApplicationStartHandler"         value="main.onAppInit"/>
53                <!--Event Handler to run at the start of a session, leave blank if not used.-->
54                <Setting name="SessionStartHandler"             value=""/>
55                <!--Event Handler to run at the end of a session, leave blank if not used.-->
56                <Setting name="SessionEndHandler"                       value=""/>
57                <!--The event handler to execute on all framework exceptions. Event Handler syntax required.-->
58                <Setting name="ExceptionHandler"                        value="" />
59                <!--What event to fire when an invalid event is detected-->
60                <Setting name="onInvalidEvent"                          value="" />
61                <!--Full path from the application's root to your custom error page, else leave blank. -->
62                <Setting name="CustomErrorTemplate"                     value="" />
63                <!--The Email address from which all outgoing framework emails will be sent. -->
64                <Setting name="OwnerEmail"                                      value="" />
65                <!-- Enable Bug Reports to be emailed out, set to true by default if left blank
66                        A sample template has been provided to you in includes/generic_error.cfm
67                 -->
68                <Setting name="EnableBugReports"                        value="false"/>
69                <!--UDF Library To Load on every request for your views and handlers -->
70                <Setting name="UDFLibraryFile"                          value="includes/helpers/ApplicationHelper.cfm" />
71                <!--Messagebox Style Override. A boolean of wether to override the styles using your own css.-->
72                <Setting name="MessageboxStyleOverride"         value="" />
73                <!--Flag to Auto reload the internal handlers directory listing. False for production. -->
74                <Setting name="HandlersIndexAutoReload"         value="true" />
75                <!--Flag to auto reload the config.xml settings. False for production. -->
76                <Setting name="ConfigAutoReload"                value="false" />
77                <!-- Declare the custom plugins base invocation path, if used. You have to use dot notation.Example: mymapping.myplugins        -->
78                <Setting name="MyPluginsLocation"               value="" />
79                <!-- Declare the external views location. It can be relative to this app or external. This in turn is used to do cfincludes. -->
80                <Setting name="ViewsExternalLocation"           value=""/>
81                <!-- Declare the external handlers base invocation path, if used. You have to use dot notation.Example: mymapping.myhandlers    -->
82                <Setting name="HandlersExternalLocation"        value="" />
83                <!-- Declare the external models base invocation path, if used. You have to use dot notation.Example: mymapping.mymodels        -->
84                <Setting name="ModelsExternalLocation"          value="" />
85                <!-- Caching of model objects via model integration  -->
86                <Setting name="ModelsObjectCaching"             value="true" />
87               
88                <!-- Uncomment More Model Integration Settings:
89                        <Setting name="ModelsSetterInjection"           value="false" />
90                        <Setting name="ModelsDICompleteUDF"             value="onDIComplete" />
91                        <Setting name="ModelsStopRecursion"             value="" />
92                        <Setting name="ModelsDebugMode"                         value="true" />
93                -->
94               
95                <!--Flag to cache handlers. Default if left blank is true. -->
96                <Setting name="HandlerCaching"                          value="false"/>
97                <!--Flag to cache events if metadata declared. Default is true -->
98                <Setting name="EventCaching"                            value="false"/>
99                <!--IOC Framework if Used, else leave blank-->
100                <Setting name="IOCFramework"                            value="" />
101                <!-- Reload IOC Framework on every request, usually for development or debugging -->
102                <Setting name="IOCFrameworkReload"                      value="false" />
103                <!--IOC Definition File Path, relative or absolute -->
104                <Setting name="IOCDefinitionFile"                       value="" />
105                <!--IOC Object Caching, true/false. For ColdBox to cache your IoC beans-->
106                <Setting name="IOCObjectCaching"                        value="false" />
107                <!--Request Context Decorator, leave blank if not using. Full instantiation path -->
108                <Setting name="RequestContextDecorator"         value=""/>
109                <!--Flag if the proxy returns the entire request collection or what the event handlers return, default is false -->
110                <Setting name="ProxyReturnCollection"           value="false"/>
111                <!-- What scope are flash persistance variables using. -->
112                <Setting name="FlashURLPersistScope"            value="session"/>
113        </Settings>
114
115        <!-- Your Settings can go here, if not needed, use <YourSettings />. You can use these for anything you like.
116                <YourSettings>
117                        <Setting name="MySetting" value="My Value"/>
118                       
119                        whether to encrypt the values or not
120                        <Setting name="cookiestorage_encryption" value="true"/>
121                       
122                        The encryption seed to use. Else, use a default one (Not Recommened)
123                        <Setting name="cookiestorage_encryption_seed" value="mykey"/>
124                       
125                        The encryption algorithm to use (According to CFML Engine)
126                        <Setting name="cookiestorage_encryption_algorithm" value="CFMX_COMPAT or BD_DEFAULT"/>
127                       
128                        Messagebox Plugin (You can now override the storage scope without affecting all framework applications)
129                        <Setting name="messagebox_storage_scope" value="session or client" />
130                       
131                        Complex Settings follow JSON Syntax. www.json.org. 
132                        *IMPORTANT: use single quotes in this xml file for JSON notation, ColdBox will translate it to double quotes.
133                </YourSettings>
134         -->
135        <YourSettings>
136                <!-- @YOURSETTINGS@ -->
137        </YourSettings>
138       
139        <!-- Custom Conventions : You can override the framework wide conventions of the locations of the needed objects
140        <Conventions>
141                <handlersLocation></handlersLocation>
142                <pluginsLocation></pluginsLocation>
143                <layoutsLocation></layoutsLocation>
144                <viewsLocation></viewsLocation>
145                <eventAction></eventAction>     
146                <modelsLocation></modelsLocation>       
147        </Conventions> 
148        -->
149       
150        <!--
151        Control the ColdBox Debugger. The panels are self explanatory. The other settings are explained below.
152        PersistentRequestProfiler : Activate the event profiler across multiple requests
153        maxPersistentRequestProfilers : Max records to keep in the profiler. Don't get gready.
154        maxRCPanelQueryRows : If a query is dumped in the RC panel, it will be truncated to this many rows.
155        -->
156        <DebuggerSettings>
157                <PersistentRequestProfiler>true</PersistentRequestProfiler>
158                <maxPersistentRequestProfilers>10</maxPersistentRequestProfilers>
159                <maxRCPanelQueryRows>50</maxRCPanelQueryRows>
160               
161                <TracerPanel    show="true" expanded="true" />
162                <InfoPanel              show="true" expanded="true" />
163                <CachePanel     show="true" expanded="false" />
164                <RCPanel                show="true" expanded="false" />
165        </DebuggerSettings>     
166       
167        <!--Optional,if blank it will use the CFMX administrator settings.-->
168        <MailServerSettings>
169                <MailServer></MailServer>
170                <MailPort></MailPort>
171                <MailUsername></MailUsername>
172                <MailPassword></MailPassword>
173        </MailServerSettings>
174
175        <!--Emails to Send bug reports, you can create as many as you like -->
176        <BugTracerReports>
177                <!-- <BugEmail>myemail@gmail.com</BugEmail> -->
178        </BugTracerReports>
179       
180        <!--Webservice declarations your use in your application, if not use, leave blank
181        Note that for the same webservice name you can have a development url and a production url.-->
182        <WebServices>
183                <!-- <WebService name="TESTWS1" URL="http://www.test.com/test1.cfc?wsdl" DevURL="http://dev.test.com/test1.cfc?wsdl" /> -->
184                <!-- <WebService name="TESTWS2" URL="http://www.test.com/test2.cfc?wsdl" DevURL="http://dev.test.com/test2.cfc?wsdl" /> -->
185        </WebServices>
186
187        <!--Declare Layouts for your application here-->
188        <Layouts>
189                <!--Declare the default layout, MANDATORY-->
190                <DefaultLayout>Layout.Main.cfm</DefaultLayout>
191               
192                <!--Default View, OPTIONAL
193                <DefaultView>home</DefaultView>
194                -->
195               
196                <!--
197                Declare other layouts, with view/folder assignments if needed, else do not write them
198                <Layout file="Layout.Popup.cfm" name="popup">
199                        <View>vwTest</View>
200                        <View>vwMyView</View>
201                        <Folder>tags</Folder>
202                </Layout>
203                -->
204        </Layouts>
205
206        <!--Internationalization and resource Bundle setup:
207        <i18N>
208                <DefaultResourceBundle>includes/main</DefaultResourceBundle>
209                <DefaultLocale>en_US</DefaultLocale>
210                <LocaleStorage>session</LocaleStorage>
211                <UknownTranslation></UknownTranslation>
212        </i18N>
213        -->
214        <i18N />
215       
216        <!--Datasource Setup, you can then retreive a datasourceBean via the getDatasource("name") method: -->
217        <Datasources>
218                <!-- <Datasource alias="MyDSNAlias" name="real_dsn_name"   dbtype="mysql"  username="" password="" /> -->
219        </Datasources>
220       
221        <!--ColdBox Object Caching Settings Overrides the Framework-wide settings -->
222        <Cache>
223                <ObjectDefaultTimeout>60</ObjectDefaultTimeout>
224                <ObjectDefaultLastAccessTimeout>30</ObjectDefaultLastAccessTimeout>
225                <UseLastAccessTimeouts>true</UseLastAccessTimeouts>
226                <ReapFrequency>1</ReapFrequency>
227                <MaxObjects>100</MaxObjects>
228                <FreeMemoryPercentageThreshold>0</FreeMemoryPercentageThreshold>
229                <EvictionPolicy>LRU</EvictionPolicy>
230        </Cache>
231       
232       
233        <!-- Interceptor Declarations
234        <Interceptors throwOnInvalidStates="true">
235                <CustomInterceptionPoints>comma-delimited list</CustomInterceptionPoints>
236                <Interceptor class="full class name">
237                        <Property name="myProp">value</Property>
238                        <Property name="myArray">[1,2,3]</Property>
239                        <Property name="myStruct">{ key1:1, key2:2 }</Property>
240                </Inteceptor>
241                <Interceptor class="no property" />
242        </Interceptors>
243        -->
244       
245        <Interceptors>
246                <!-- USE ENVIRONMENT CONTROL -->
247                <Interceptor class="coldbox.system.Interceptors.environmentControl">
248                        <Property name='configFile'>config/environments.xml.cfm</Property>
249                </Interceptor>
250                <!-- USE AUTOWIRING -->
251                <Interceptor class="coldbox.system.Interceptors.autowire">
252                        <Property name='enableSetterInjection'>true</Property>
253                </Interceptor>
254                <!-- USE SES -->
255                <Interceptor class="coldbox.system.Interceptors.ses">
256                        <Property name="configFile">config/routes.cfm</Property>
257                </Interceptor>         
258                <!-- @SIDEBAR@ -->
259        </Interceptors>
260       
261</Config>
Note: See TracBrowser for help on using the browser.