PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/application/config/application.ini

https://bitbucket.org/openfisma-ondemand/openfisma
INI | 141 lines | 73 code | 17 blank | 51 comment | 0 complexity | 2efd43e11e6307724b1b239daa9e37ee MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-2.1, GPL-3.0, Apache-2.0, EPL-1.0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;
  3. ; Copyright (c) 2008 Endeavor Systems, Inc.
  4. ;
  5. ; This file is part of OpenFISMA.
  6. ;
  7. ; OpenFISMA is free software: you can redistribute it and/or modify
  8. ; it under the terms of the GNU General Public License as published by
  9. ; the Free Software Foundation, either version 3 of the License, or
  10. ; (at your option) any later version.
  11. ;
  12. ; OpenFISMA is distributed in the hope that it will be useful,
  13. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ; GNU General Public License for more details.
  16. ;
  17. ; You should have received a copy of the GNU General Public License
  18. ; along with OpenFISMA. If not, see {@link http://www.gnu.org/licenses/}.
  19. ;
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21. ;
  22. ; The configuration file is split into two sections, production and development. Most deployments should run in
  23. ; production mode.
  24. ;
  25. ; Author: Mark E. Haase <mhaase@endeavorsystems.com>
  26. ; Copyright: (c) Endeavor Systems, Inc. 2009 {@link http://www.endeavorsystems.com}
  27. ; License: http://www.openfisma.org/content/license
  28. ;
  29. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  30. ; Environment can be "production" or "development"
  31. environment = production
  32. ; Most deployments should run in production mode
  33. [production]
  34. ; Additional ini files to include
  35. config.db = APPLICATION_PATH "/config/database.ini"
  36. config.search = APPLICATION_PATH "/config/search.ini"
  37. config.proxy = APPLICATION_PATH "/config/reverse_proxy.ini"
  38. config.mail_template = APPLICATION_PATH "/config/mail_template.ini"
  39. ; Release and YUI versions
  40. versions.application = 4.0.0
  41. versions.yui = 2.9.0
  42. ; Session settings
  43. resources.session.save_path = APPLICATION_PATH "/../data/sessions"
  44. resources.session.name = OpenFISMA
  45. resources.session.cookie_secure = true ; Change to false if not running under SSL
  46. resources.session.hash_function = 1
  47. resources.session.use_only_cookies = true
  48. ; PHP settings
  49. phpSettings.display_errors = false
  50. phpSettings.memory_limit = 1024M
  51. phpSettings.error_reporting = E_ALL | E_STRICT
  52. phpSettings.log_errors = true
  53. phpSettings.error_log = APPLICATION_PATH "/../data/logs/php.log"
  54. phpSettings.session.cache_limiter = private
  55. phpSettings.session.cache_expire = 0
  56. phpSettings.date.timezone = "America/New_York"
  57. ; Enable UTF-8 in PHP
  58. ; Turn on mbstring function overloading to support UTF-8
  59. phpSettings.default_charset = "utf-8"
  60. phpSettings.mbstring.func_overload = 7
  61. ; Bootstrap configuration
  62. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  63. bootstrap.class = "Bootstrap"
  64. bootstrap.container.type = symfony
  65. bootstrap.container.symfony.configPaths[] = APPLICATION_PATH "/services"
  66. bootstrap.container.symfony.cache = true
  67. bootstrap.container.symfony.cacheFile = APPLICATION_PATH "/../data/cache/SymfonyServiceContainer.php"
  68. ; Front controller configuration
  69. resources.frontController.throwExceptions = false
  70. resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  71. resources.frontController.prefixDefaultModule = false
  72. resources.frontController.defaultModule = "default"
  73. resources.frontController.plugins.Configuration = "Fisma_Zend_Controller_Plugin_Configuration"
  74. resources.frontController.plugins.Csrf = "Fisma_Zend_Controller_Plugin_CsrfProtect"
  75. resources.frontController.plugins.ErrorHandler = "Fisma_Zend_Controller_Plugin_ErrorHandler"
  76. resources.frontController.plugins.Security = "Fisma_Zend_Controller_Plugin_Security"
  77. resources.frontController.plugins.ForcedActionHandler = "Fisma_Zend_Controller_Plugin_ForcedActionHandler"
  78. ; Logging configuration
  79. resources.log.stream.writerName = "Stream"
  80. resources.log.stream.writerParams.stream = APPLICATION_PATH "/../data/logs/error.log"
  81. resources.log.stream.writerNamespace = "Fisma_Zend_Log_Writer"
  82. ; Cache configuration
  83. resources.cachemanager.default.frontend.name = Core
  84. resources.cachemanager.default.frontend.options.caching = true
  85. resources.cachemanager.default.frontend.options.lifetime = 0
  86. resources.cachemanager.default.frontend.options.automatic_serialization = true
  87. resources.cachemanager.default.frontend.options.cache_id_prefix = openfisma_ ; Change this to something unique if you are running multiple installations of OpenFISMA
  88. resources.cachemanager.default.backend.name = Apc
  89. ; If you do not have Apc available, comment out the above line, and uncomment the 2 lines below
  90. ;resources.cachemanager.default.backend.name = File
  91. ;resources.cachemanager.default.backend.options.cache_dir = APPLICATION_PATH "/../data/cache"
  92. ; Autoloader configuration
  93. autoloadernamespaces.fisma = "Fisma_"
  94. ; Include path configuration
  95. includePaths.library = APPLICATION_PATH "/../library"
  96. includePaths.doctrine-models = APPLICATION_PATH "/models/generated"
  97. includePaths.model = APPLICATION_PATH "/models"
  98. includePaths.controller = APPLICATION_PATH "/controllers"
  99. includePaths.forms = APPLICATION_PATH "/forms"
  100. includePaths.listener = APPLICATION_PATH "/models/listener"
  101. includePaths.pear = APPLICATION_PATH "/../library/Pear"
  102. ; Configure special route storage-whitelist.xml => storage/whitelist/format/xml
  103. resources.router.routes.storageWhitelist.type = "Zend_Controller_Router_Route_Static"
  104. resources.router.routes.storageWhitelist.route = "storage-whitelist.xml"
  105. resources.router.routes.storageWhitelist.defaults.controller = "storage"
  106. resources.router.routes.storageWhitelist.defaults.action = "whitelist"
  107. resources.router.routes.storageWhitelist.defaults.format = "xml"
  108. ; Localization configuration
  109. resources.translate.registry_key = "Zend_Translate"
  110. resources.translate.adapter = "ini"
  111. resources.translate.options.logUntranslated = false
  112. resources.translate.options.scan = "directory"
  113. resources.translate.options.disableNotices = 1
  114. resources.translate.options.logfile = APPLICATION_PATH "/../data/log/translator.log"
  115. resources.translate.data = APPLICATION_PATH "/config/languages"
  116. resources.translate.cacheEnabled = true
  117. ; Development mode displays error messages to the user and enables some features that aid
  118. ; debugging but reduce performance. Development mode inherits all properties from production
  119. ; mode unless specifically over-ridden.
  120. [development : production]
  121. debug = true
  122. phpSettings.display_errors = true
  123. phpSettings.xdebug.var_display_max_depth = 3
  124. resources.session.cookie_secure = false