Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

98 wiersze
2.8KB

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

Powered by TurnKey Linux.