Skip to content

Commit 7669552

Browse files
committed
Create app_local.php
1 parent 05e7f02 commit 7669552

File tree

1 file changed

+156
-0
lines changed

1 file changed

+156
-0
lines changed

cakephp/html/app_local.php

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
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+
/*
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+
/*
32+
* Configure basic information about the application.
33+
*
34+
* - paths - Configure paths for non class based resources. Supports the
35+
* `plugins`, `templates`, `locales` subkeys, which allow the definition of
36+
* paths for plugins, view templates and locale files respectively.
37+
*/
38+
39+
'App' => [
40+
'paths' => [
41+
'plugins' => [ROOT . DS . 'plugins' . DS],
42+
'templates' => ['/var/www/html/templates/'],
43+
'locales' => [RESOURCES . 'locales' . DS],
44+
],
45+
],
46+
47+
/*
48+
* Connection information used by the ORM to connect
49+
* to your application's datastores.
50+
*
51+
* See app.php for more configuration options.
52+
*/
53+
'Datasources' => [
54+
'default' => [
55+
'driver' => Mysql::class,
56+
'host' => 'database',
57+
/*
58+
* CakePHP will use the default DB port based on the driver selected
59+
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment
60+
* the following line and set the port accordingly
61+
*/
62+
//'port' => 'non_standard_port_number',
63+
64+
'username' => 'DB_USER',
65+
'password' => 'DB_PASSWORD',
66+
67+
'database' => 'DB_NAME',
68+
/*
69+
* If not using the default 'public' schema with the PostgreSQL driver
70+
* set it here.
71+
*/
72+
//'schema' => 'myapp',
73+
74+
/*
75+
* You can use a DSN string to set the entire configuration
76+
*/
77+
'url' => env('DATABASE_URL', null),
78+
],
79+
80+
/*
81+
* The test connection is used during the test suite.
82+
*/
83+
'test' => [
84+
'driver' => Mysql::class,
85+
'host' => 'localhost',
86+
//'port' => 'non_standard_port_number',
87+
'username' => 'my_app',
88+
'password' => 'secret',
89+
'database' => 'test_myapp',
90+
//'schema' => 'myapp',
91+
'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tests.sqlite'),
92+
],
93+
],
94+
95+
/*
96+
* Email configuration.
97+
*
98+
* Host and credential configuration in case you are using SmtpTransport
99+
*
100+
* See app.php for more configuration options.
101+
*/
102+
'EmailTransport' => [
103+
'default' => [
104+
'host' => 'localhost',
105+
'port' => 25,
106+
'username' => null,
107+
'password' => null,
108+
'client' => null,
109+
'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
110+
],
111+
],
112+
113+
/**
114+
* Configure the cache adapters.
115+
*/
116+
'Cache' => [
117+
'default' => [
118+
'className' => 'Redis',
119+
'path' => CACHE,
120+
'password' => false,
121+
'server' => 'redis',
122+
'port' => 6379,
123+
],
124+
125+
/**
126+
* Configure the cache used for general framework caching.
127+
* Translation cache files are stored with this configuration.
128+
*/
129+
'_cake_core_' => [
130+
'className' => 'Redis',
131+
'prefix' => 'myapp_cake_core_',
132+
'path' => CACHE . 'persistent/',
133+
'serialize' => true,
134+
'duration' => '+2 minutes',
135+
'server' => 'redis',
136+
'port' => 6379,
137+
'password' => false,
138+
],
139+
140+
/**
141+
* Configure the cache for model and datasource caches. This cache
142+
* configuration is used to store schema descriptions, and table listings
143+
* in connections.
144+
*/
145+
'_cake_model_' => [
146+
'className' => 'Redis',
147+
'prefix' => 'myapp_cake_model_',
148+
'path' => CACHE . 'models/',
149+
'serialize' => true,
150+
'duration' => '+2 minutes',
151+
'server' => 'redis',
152+
'port' => 6379,
153+
'password' => false,
154+
],
155+
],
156+
];

0 commit comments

Comments
 (0)