config.app.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | PIMF Application Configuration
  5. |--------------------------------------------------------------------------
  6. |
  7. | The PIMF configuration is responsible for returning an array
  8. | of configuration options. By default, we use the variable $config provided
  9. | with PIMF - however, you are free to use your own storage mechanism for
  10. | configuration arrays.
  11. |
  12. */
  13. return array(
  14. /*
  15. |------------------------------------------------------------------------
  16. | The default environment mode for your application [testing|production]
  17. |------------------------------------------------------------------------
  18. */
  19. 'environment' => 'production',
  20. /*
  21. |------------------------------------------------------------------------
  22. | The default character encoding used by your application.
  23. |------------------------------------------------------------------------
  24. */
  25. 'encoding' => 'UTF-8',
  26. /*
  27. |------------------------------------------------------------------------
  28. | The default timezone of your application.
  29. | Supported timezones list: http://www.php.net/manual/en/timezones.php
  30. |------------------------------------------------------------------------
  31. */
  32. 'timezone' => 'UTC',
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Is it regular HTTP or secure HTTPS
  36. |--------------------------------------------------------------------------
  37. */
  38. 'ssl' => false,
  39. /*
  40. |------------------------------------------------------------------------
  41. | Application meta
  42. |------------------------------------------------------------------------
  43. */
  44. 'app' => array(
  45. 'name' => 'Vanilla',
  46. 'key' => 'some5secret5key5here', // application key
  47. 'default_controller' => 'hello', // the name of the fallback controller
  48. 'routeable' => true, // get cleaner URLs or not
  49. 'url' => 'http://localhost', // URL used to access your application without a trailing slash.
  50. 'index' => '', // if you are using mod_rewrite to get cleaner URLs let it empty otherwise set index.php
  51. 'asset_url' => '', // the base URL used for your application's asset files
  52. ),
  53. /*
  54. |------------------------------------------------------------------------
  55. | Production environment settings
  56. |------------------------------------------------------------------------
  57. */
  58. 'production' => array(
  59. 'db' => array(
  60. 'driver' => 'mysql',
  61. 'host' => '127.0.0.1',
  62. 'database' => 'hello_world',
  63. 'username' => 'benchmarkdbuser',
  64. 'password' => 'benchmarkdbpass',
  65. 'charset' => 'utf8',
  66. 'port' => '3306',
  67. // 'unix_socket' => '',
  68. ),
  69. ),
  70. /*
  71. |------------------------------------------------------------------------
  72. | Bootstrapping and dependencies to php-version and extensions
  73. |------------------------------------------------------------------------
  74. */
  75. 'bootstrap' => array(
  76. 'local_temp_directory' => '/tmp/'
  77. ),
  78. /*
  79. |------------------------------------------------------------------------
  80. | Settings for the error handling behavior
  81. |------------------------------------------------------------------------
  82. */
  83. 'error' => array(
  84. 'ignore_levels' => array(E_USER_DEPRECATED),
  85. 'debug_info' => false, // true = if developing - false = if production
  86. 'log' => true,
  87. ),
  88. /*
  89. |--------------------------------------------------------------------------
  90. | Session settings
  91. |--------------------------------------------------------------------------
  92. */
  93. 'session' => array(
  94. // Session storage 'cookie', 'file', 'pdo', 'memcached', 'apc', 'redis', 'dba', 'wincache', 'memory'
  95. 'storage' => '',
  96. // If using file storage - default is null
  97. 'storage_path' => 'app/Vanilla/_session/',
  98. // If using the PDO (database) session storage
  99. 'database' => array(
  100. //'driver' => 'sqlite',
  101. //'database' => 'app/Vanilla/_session/session.db',
  102. ),
  103. // Garbage collection has a 2% chance of occurring for any given request to
  104. // the application. Feel free to tune this to your requirements.
  105. 'garbage_collection' => array(2, 100),
  106. // Session lifetime number of minutes
  107. 'lifetime' => 60,
  108. // Session expiration on web browser close
  109. 'expire_on_close' => false,
  110. // Session cookie name
  111. 'cookie' => 'pimf_session',
  112. // Session cookie path
  113. 'path' => '/',
  114. // Domain for which the session cookie is available.
  115. 'domain' => null,
  116. // If the cookie should only be sent over HTTPS.
  117. 'secure' => false,
  118. ),
  119. /*
  120. |--------------------------------------------------------------------------
  121. | Cache settings
  122. |--------------------------------------------------------------------------
  123. */
  124. 'cache' => array(
  125. // Cache storage 'pdo', 'file', 'memcached', 'apc', 'redis', 'dba', 'wincache', 'memory'
  126. 'storage' => '',
  127. // If using file storage - default is null
  128. 'storage_path' => 'app/Vanilla/_cache/',
  129. // If using the PDO (database) cache storage
  130. 'database' => array(
  131. //'driver' => 'sqlite',
  132. //'database' => 'app/Vanilla/_cache/cache.db',
  133. ),
  134. // If using Memcached and APC to prevent collisions with other applications on the server.
  135. 'key' => 'pimfmaster',
  136. // Memcached servers - for more check out: http://memcached.org
  137. 'memcached' => array(
  138. 'servers' => array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
  139. ),
  140. ),
  141. );