app_local.example.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /*
  3. * Local configuration file to provide any overrides to your app.php configuration.
  4. * Copy and save this file as app_local.php and make changes as required.
  5. * Note: It is not recommended to commit files with credentials such as app_local.php
  6. * into source code version control.
  7. */
  8. return [
  9. /*
  10. * Debug Level:
  11. *
  12. * Production Mode:
  13. * false: No error messages, errors, or warnings shown.
  14. *
  15. * Development Mode:
  16. * true: Errors and warnings shown.
  17. */
  18. 'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),
  19. /*
  20. * Security and encryption configuration
  21. *
  22. * - salt - A random string used in security hashing methods.
  23. * The salt value is also used as the encryption key.
  24. * You should treat it as extremely sensitive data.
  25. */
  26. 'Security' => [
  27. 'salt' => env('SECURITY_SALT', '__SALT__'),
  28. ],
  29. /*
  30. * Connection information used by the ORM to connect
  31. * to your application's datastores.
  32. *
  33. * See app.php for more configuration options.
  34. */
  35. 'Datasources' => [
  36. 'default' => [
  37. 'host' => 'localhost',
  38. /*
  39. * CakePHP will use the default DB port based on the driver selected
  40. * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
  41. * the following line and set the port accordingly
  42. */
  43. //'port' => 'non_standard_port_number',
  44. 'username' => 'my_app',
  45. 'password' => 'secret',
  46. 'database' => 'my_app',
  47. /*
  48. * If not using the default 'public' schema with the PostgreSQL driver
  49. * set it here.
  50. */
  51. //'schema' => 'myapp',
  52. /*
  53. * You can use a DSN string to set the entire configuration
  54. */
  55. 'url' => env('DATABASE_URL', null),
  56. ],
  57. /*
  58. * The test connection is used during the test suite.
  59. */
  60. 'test' => [
  61. 'host' => 'localhost',
  62. //'port' => 'non_standard_port_number',
  63. 'username' => 'my_app',
  64. 'password' => 'secret',
  65. 'database' => 'test_myapp',
  66. //'schema' => 'myapp',
  67. 'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tmp/tests.sqlite'),
  68. ],
  69. ],
  70. /*
  71. * Email configuration.
  72. *
  73. * Host and credential configuration in case you are using SmtpTransport
  74. *
  75. * See app.php for more configuration options.
  76. */
  77. 'EmailTransport' => [
  78. 'default' => [
  79. 'host' => 'localhost',
  80. 'port' => 25,
  81. 'username' => null,
  82. 'password' => null,
  83. 'client' => null,
  84. 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
  85. ],
  86. ],
  87. ];