<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations xmlns="http://agavi.org/agavi/config/parts/module/1.0" xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0">
    <ae:configuration>
        
        <module enabled="true">
            <settings>
                <setting name="title">AppKit Module</setting>
                <setting name="version">1.0</setting>

                <setting name="authors">
                    <ae:parameter name="info@icinga.org">icinga developer team</ae:parameter>
                </setting>
                <setting name="homepage">http://www.icinga.org</setting>
                <setting name="update_url" />
                <setting name="description">Appkit main application kit</setting>

                <setting name="doctrine_path">%core.root_dir%/lib/doctrine/</setting>
                <setting name="doctrine_use_compressed">false</setting>
                
                <setting name="php_settings">
                    <ae:parameter name="session.gc_probability">3</ae:parameter>
                    <ae:parameter name="session.gc_divisor">100</ae:parameter>
                    <ae:parameter name="session.gc_maxlifetime">86400</ae:parameter>
                    
                    <!-- Set the default timezone, this is missing on some systems -->
                    <ae:parameter name="date.timezone">GMT</ae:parameter>
                </setting>

                <setting name="squishloader">
                    <ae:parameter name="cache_dir">%core.cache_dir%/Squished</ae:parameter>
                    <ae:parameter name="use_caching">true</ae:parameter>
                    <ae:parameter name="use_gzcompress">false</ae:parameter>
                    <ae:parameter name="gzcompress_level">2</ae:parameter>
                </setting>

                <setting name="user_preferences_default">
                    <ae:parameter name="org.icinga.grid.pagerMaxItems">25</ae:parameter>
                    <ae:parameter name="org.icinga.grid.refreshTime">300</ae:parameter>
                    <ae:parameter name="org.icinga.grid.outputLength">70</ae:parameter>
                    <ae:parameter name="org.icinga.tabslider.changeTime">10</ae:parameter>
                    <ae:parameter name="org.icinga.cronk.default">portalHello</ae:parameter>
                    <ae:parameter name="org.icinga.bugTrackerEnabled">true</ae:parameter>
                    <ae:parameter name="org.icinga.errorNotificationsEnabled">true</ae:parameter>
                    <ae:parameter name="org.icinga.autoRefresh">true</ae:parameter>
                    <ae:parameter name="org.icinga.status.refreshTime">60</ae:parameter>
                    <ae:parameter name="org.icinga.cronk.liststyle">list</ae:parameter>

                    <xi:include
                        xmlns:xi="http://www.w3.org/2001/XInclude"
                        href="/var/www/icinga-web/etc/conf.d/userpreferences.xml#xmlns(ae=http://agavi.org/agavi/config/global/envelope/1.0)xpointer(//ae:parameter)">
                            <xi:fallback>
                            </xi:fallback>
                    </xi:include>
                </setting>

                <!--
                    Mapping between AgaviConfig and AppKit.util.Config
                -->
                <setting name="js_config_mapping">
                    <ae:parameter name="path">org.icinga.appkit.web_path</ae:parameter>
                    <ae:parameter name="image_path">org.icinga.appkit.image_path</ae:parameter>
                    
                    <!--
                        Leaving source blank: target and source is just the same
                    -->
                    <ae:parameter name="core.app_name"></ae:parameter>
                    <ae:parameter name="org.icinga.version.copyright"></ae:parameter>
                    <ae:parameter name="org.icinga.version.homeref"></ae:parameter>
                    <ae:parameter name="org.icinga.version.major"></ae:parameter>
                    <ae:parameter name="org.icinga.version.minor"></ae:parameter>
                    <ae:parameter name="org.icinga.version.patch"></ae:parameter>
                    <ae:parameter name="org.icinga.version.extension"></ae:parameter>
                    <ae:parameter name="org.icinga.version.releasedate"></ae:parameter>
                    <ae:parameter name="org.icinga.version.name"></ae:parameter>
                    <ae:parameter name="org.icinga.version.release"></ae:parameter>
                </setting>
                
                <!-- Ajax default request timeout (ms), 4 minutes == 240000 -->
                <setting name="ajax.timeout">240000</setting>

                <setting name="agavi.include.css">
                    <ae:parameter>%core.module_dir%/AppKit/config/css.xml</ae:parameter>
                </setting>
                
                <setting name="agavi.include.javascript">
                    <ae:parameter>%core.module_dir%/AppKit/config/javascript.xml</ae:parameter>
                </setting>
                <setting name="agavi.include.menu">
                    <ae:parameter>%core.module_dir%/AppKit/config/menu.xml</ae:parameter>
                </setting>

                <setting name="agavi.include.routing">
                    <ae:parameter>%core.module_dir%/AppKit/config/routing.xml</ae:parameter>
                </setting>

                <setting name="debug.verbose">
                    <!--  Debug output for db queries -->
                    <!-- 
                    <ae:parameter>Api_Store_LegacyLayer_IcingaApiModel</ae:parameter>
                    -->
                    
                    <!--  Debug output for object search -->
                    <!-- 
                    <ae:parameter>Cronks_System_ObjectSearchResultModel</ae:parameter>
                    -->
            
                    <!-- Debug output for Session handling via Doctrine-->
                    <!-- 
                    <ae:parameter>AppKitDoctrineSessionStorage</ae:parameter>
                    -->
                </setting>

            </settings>
    
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="auth.xml"/>
        </module>
    </ae:configuration>
    <!--  Try include the overwriting file -->
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="/var/www/icinga-web/etc/conf.d/module_appkit.xml#xmlns(ae=http://agavi.org/agavi/config/global/envelope/1.0)xpointer(ae:configurations/node())">
            <xi:fallback></xi:fallback>
    </xi:include>
</ae:configurations>
