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