· 4 years ago · Apr 06, 2021, 03:28 AM
1<?php
2return [
3 /**
4 * Debug Level:
5 *
6 * Production Mode:
7 * false: No error messages, errors, or warnings shown.
8 *
9 * Development Mode:
10 * true: Errors and warnings shown.
11 */
12 'debug' => false,
13
14 /**
15 * Configure basic information about the application.
16 *
17 * - namespace - The namespace to find app classes under.
18 * - defaultLocale - The default locale for translation, formatting currencies and numbers, date and time.
19 * - encoding - The encoding used for HTML + database connections.
20 * - base - The base directory the app resides in. If false this
21 * will be auto detected.
22 * - dir - Name of app directory.
23 * - webroot - The webroot directory.
24 * - wwwRoot - The file path to webroot.
25 * - baseUrl - To configure CakePHP to *not* use mod_rewrite and to
26 * use CakePHP pretty URLs, remove these .htaccess
27 * files:
28 * /.htaccess
29 * /webroot/.htaccess
30 * And uncomment the baseUrl key below.
31 * - fullBaseUrl - A base URL to use for absolute links.
32 * - imageBaseUrl - Web path to the public images directory under webroot.
33 * - cssBaseUrl - Web path to the public css directory under webroot.
34 * - jsBaseUrl - Web path to the public js directory under webroot.
35 * - paths - Configure paths for non class based resources. Supports the
36 * `plugins`, `templates`, `locales` subkeys, which allow the definition of
37 * paths for plugins, view templates and locale files respectively.
38 */
39 'App' => [
40 'namespace' => 'App',
41 'encoding' => env('APP_ENCODING', 'UTF-8'),
42 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),
43 'base' => false,
44 'dir' => 'src',
45 'webroot' => 'webroot',
46 'wwwRoot' => WWW_ROOT,
47 // 'baseUrl' => env('SCRIPT_NAME'),
48 'fullBaseUrl' => false,
49 'imageBaseUrl' => 'img/',
50 'cssBaseUrl' => 'css/',
51 'jsBaseUrl' => 'js/',
52 'paths' => [
53 'plugins' => [ROOT . DS . 'plugins' . DS],
54 'templates' => [APP . 'Template' . DS],
55 'locales' => [APP . 'Locale' . DS],
56 ],
57 ],
58
59 /**
60 * Security and encryption configuration
61 *
62 * - salt - A random string used in security hashing methods.
63 * The salt value is also used as the encryption key.
64 * You should treat it as extremely sensitive data.
65 */
66 'Security' => [
67 'salt' => env('SECURITY_SALT', 'e647b30ea6c6396e5fcf5eb477c7e300856d24b1b9b27fa6f8ad1602a6709784'),
68 ],
69
70 /**
71 * Apply timestamps with the last modified time to static assets (js, css, images).
72 * Will append a querystring parameter containing the time the file was modified.
73 * This is useful for busting browser caches.
74 *
75 * Set to true to apply timestamps when debug is true. Set to 'force' to always
76 * enable timestamping regardless of debug value.
77 */
78 'Asset' => [
79 // 'timestamp' => true,
80 ],
81
82 /**
83 * Configure the cache adapters.
84 */
85 'Cache' => [
86 'default' => [
87 'className' => 'File',
88 'path' => CACHE,
89 'url' => env('CACHE_DEFAULT_URL', null),
90 ],
91
92 /**
93 * Configure the cache used for general framework caching.
94 * Translation cache files are stored with this configuration.
95 * Duration will be set to '+1 year' in bootstrap.php when debug = false
96 */
97 '_cake_core_' => [
98 'className' => 'File',
99 'prefix' => 'myapp_cake_core_',
100 'path' => CACHE . 'persistent/',
101 'serialize' => true,
102 'duration' => '+2 minutes',
103 'url' => env('CACHE_CAKECORE_URL', null),
104 ],
105
106 /**
107 * Configure the cache for model and datasource caches. This cache
108 * configuration is used to store schema descriptions, and table listings
109 * in connections.
110 * Duration will be set to '+1 year' in bootstrap.php when debug = false
111 */
112 '_cake_model_' => [
113 'className' => 'File',
114 'prefix' => 'myapp_cake_model_',
115 'path' => CACHE . 'models/',
116 'serialize' => true,
117 'duration' => '+2 minutes',
118 'url' => env('CACHE_CAKEMODEL_URL', null),
119 ],
120 ],
121
122 /**
123 * Configure the Error and Exception handlers used by your application.
124 *
125 * By default errors are displayed using Debugger, when debug is true and logged
126 * by Cake\Log\Log when debug is false.
127 *
128 * In CLI environments exceptions will be printed to stderr with a backtrace.
129 * In web environments an HTML page will be displayed for the exception.
130 * With debug true, framework errors like Missing Controller will be displayed.
131 * When debug is false, framework errors will be coerced into generic HTTP errors.
132 *
133 * Options:
134 *
135 * - `errorLevel` - int - The level of errors you are interested in capturing.
136 * - `trace` - boolean - Whether or not backtraces should be included in
137 * logged errors/exceptions.
138 * - `log` - boolean - Whether or not you want exceptions logged.
139 * - `exceptionRenderer` - string - The class responsible for rendering
140 * uncaught exceptions. If you choose a custom class you should place
141 * the file for that class in src/Error. This class needs to implement a
142 * render method.
143 * - `skipLog` - array - List of exceptions to skip for logging. Exceptions that
144 * extend one of the listed exceptions will also be skipped for logging.
145 * E.g.:
146 * `'skipLog' => ['Cake\Network\Exception\NotFoundException', 'Cake\Network\Exception\UnauthorizedException']`
147 * - `extraFatalErrorMemory` - int - The number of megabytes to increase
148 * the memory limit by when a fatal error is encountered. This allows
149 * breathing room to complete logging or error handling.
150 */
151 'Error' => [
152 'errorLevel' => E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED,
153 'exceptionRenderer' => 'Cake\Error\ExceptionRenderer',
154 'skipLog' => [],
155 'log' => true,
156 'trace' => true,
157 ],
158
159 /**
160 * Email configuration.
161 *
162 * By defining transports separately from delivery profiles you can easily
163 * re-use transport configuration across multiple profiles.
164 *
165 * You can specify multiple configurations for production, development and
166 * testing.
167 *
168 * Each transport needs a `className`. Valid options are as follows:
169 *
170 * Mail - Send using PHP mail function
171 * Smtp - Send using SMTP
172 * Debug - Do not send the email, just return the result
173 *
174 * You can add custom transports (or override existing transports) by adding the
175 * appropriate file to src/Mailer/Transport. Transports should be named
176 * 'YourTransport.php', where 'Your' is the name of the transport.
177 */
178 'EmailTransport' => [
179 'default' => [
180 'className' => 'Mail',
181 // The following keys are used in SMTP transports
182 'host' => 'localhost',
183 'port' => 25,
184 'timeout' => 30,
185 'username' => 'user',
186 'password' => 'secret',
187 'client' => null,
188 'tls' => null,
189 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
190 ],
191 'newsletter' => [
192 'className' => 'Smtp',
193 // The following keys are used in SMTP transports
194 'host' => 'smtp.mailspons.com',
195 'port' => 2525,
196 'timeout' => 30,
197 'username' => 'username',
198 'password' => 'password',
199 // 'client' => null,
200 'tls' => null,
201 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
202 ],
203 ],
204
205 /**
206 * Email delivery profiles
207 *
208 * Delivery profiles allow you to predefine various properties about email
209 * messages from your application and give the settings a name. This saves
210 * duplication across your application and makes maintenance and development
211 * easier. Each profile accepts a number of keys. See `Cake\Mailer\Email`
212 * for more information.
213 */
214 'Email' => [
215 'default' => [
216 'transport' => 'default',
217 'from' => 'you@localhost',
218 //'charset' => 'utf-8',
219 //'headerCharset' => 'utf-8',
220 ],
221 ],
222
223 /**
224 * Connection information used by the ORM to connect
225 * to your application's datastores.
226 * Drivers include Mysql Postgres Sqlite Sqlserver
227 * See vendor\cakephp\cakephp\src\Database\Driver for complete list
228 */
229 'Datasources' => [
230 'default' => [
231 'className' => 'Cake\Database\Connection',
232 'driver' => 'Cake\Database\Driver\Mysql',
233 'persistent' => false,
234 'host' => '13.228.54.151',
235 /**
236 * CakePHP will use the default DB port based on the driver selected
237 * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
238 * the following line and set the port accordingly
239 */
240 //'port' => 'non_standard_port_number',
241 'username' => 'dev',
242 'password' => 'jogja2017',
243 'database' => 'test_jba_web',
244 'encoding' => 'utf8',
245 'timezone' => 'UTC',
246 'flags' => [],
247 'cacheMetadata' => true,
248 'log' => false,
249
250 /**
251 * Set identifier quoting to true if you are using reserved words or
252 * special characters in your table or column names. Enabling this
253 * setting will result in queries built using the Query Builder having
254 * identifiers quoted when creating SQL. It should be noted that this
255 * decreases performance because each query needs to be traversed and
256 * manipulated before being executed.
257 */
258 'quoteIdentifiers' => false,
259
260 /**
261 * During development, if using MySQL < 5.6, uncommenting the
262 * following line could boost the speed at which schema metadata is
263 * fetched from the database. It can also be set directly with the
264 * mysql configuration directive 'innodb_stats_on_metadata = 0'
265 * which is the recommended value in production environments
266 */
267 //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
268
269 'url' => env('DATABASE_URL', null),
270 ],
271
272 'jba_customer' => [
273 'className' => 'Cake\Database\Connection',
274 'driver' => 'Cake\Database\Driver\Mysql',
275 'persistent' => false,
276 'host' => '13.228.54.151',
277 /**
278 * CakePHP will use the default DB port based on the driver selected
279 * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
280 * the following line and set the port accordingly
281 */
282 //'port' => 'non_standard_port_number',
283 'username' => 'dev',
284 'password' => 'jogja2017',
285 'database' => 'test_jba_customer',
286 'encoding' => 'utf8',
287 'timezone' => 'UTC',
288 'flags' => [],
289 'cacheMetadata' => true,
290 'log' => false,
291
292 /**
293 * Set identifier quoting to true if you are using reserved words or
294 * special characters in your table or column names. Enabling this
295 * setting will result in queries built using the Query Builder having
296 * identifiers quoted when creating SQL. It should be noted that this
297 * decreases performance because each query needs to be traversed and
298 * manipulated before being executed.
299 */
300 'quoteIdentifiers' => false,
301
302 /**
303 * During development, if using MySQL < 5.6, uncommenting the
304 * following line could boost the speed at which schema metadata is
305 * fetched from the database. It can also be set directly with the
306 * mysql configuration directive 'innodb_stats_on_metadata = 0'
307 * which is the recommended value in production environments
308 */
309 //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
310
311 'url' => env('DATABASE_URL', null),
312 ],
313
314 /**
315 * The test connection is used during the test suite.
316 */
317 'test' => [
318 'className' => 'Cake\Database\Connection',
319 'driver' => 'Cake\Database\Driver\Mysql',
320 'persistent' => false,
321 'host' => 'localhost',
322 //'port' => 'non_standard_port_number',
323 'username' => 'my_app',
324 'password' => 'secret',
325 'database' => 'test_myapp',
326 'encoding' => 'utf8',
327 'timezone' => 'UTC',
328 'cacheMetadata' => true,
329 'quoteIdentifiers' => false,
330 'log' => false,
331 //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
332 'url' => env('DATABASE_TEST_URL', null),
333 ],
334 ],
335
336 /**
337 * Configures logging options
338 */
339 'Log' => [
340 'debug' => [
341 'className' => 'Cake\Log\Engine\FileLog',
342 'path' => LOGS,
343 'file' => 'debug',
344 'levels' => ['notice', 'info', 'debug'],
345 'url' => env('LOG_DEBUG_URL', null),
346 ],
347 'error' => [
348 'className' => 'Cake\Log\Engine\FileLog',
349 'path' => LOGS,
350 'file' => 'error',
351 'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
352 'url' => env('LOG_ERROR_URL', null),
353 ],
354 ],
355
356 /**
357 * Session configuration.
358 *
359 * Contains an array of settings to use for session configuration. The
360 * `defaults` key is used to define a default preset to use for sessions, any
361 * settings declared here will override the settings of the default config.
362 *
363 * ## Options
364 *
365 * - `cookie` - The name of the cookie to use. Defaults to 'CAKEPHP'.
366 * - `cookiePath` - The url path for which session cookie is set. Maps to the
367 * `session.cookie_path` php.ini config. Defaults to base path of app.
368 * - `timeout` - The time in minutes the session should be valid for.
369 * Pass 0 to disable checking timeout.
370 * Please note that php.ini's session.gc_maxlifetime must be equal to or greater
371 * than the largest Session['timeout'] in all served websites for it to have the
372 * desired effect.
373 * - `defaults` - The default configuration set to use as a basis for your session.
374 * There are four built-in options: php, cake, cache, database.
375 * - `handler` - Can be used to enable a custom session handler. Expects an
376 * array with at least the `engine` key, being the name of the Session engine
377 * class to use for managing the session. CakePHP bundles the `CacheSession`
378 * and `DatabaseSession` engines.
379 * - `ini` - An associative array of additional ini values to set.
380 *
381 * The built-in `defaults` options are:
382 *
383 * - 'php' - Uses settings defined in your php.ini.
384 * - 'cake' - Saves session files in CakePHP's /tmp directory.
385 * - 'database' - Uses CakePHP's database sessions.
386 * - 'cache' - Use the Cache class to save sessions.
387 *
388 * To define a custom session handler, save it at src/Network/Session/<name>.php.
389 * Make sure the class implements PHP's `SessionHandlerInterface` and set
390 * Session.handler to <name>
391 *
392 * To use database sessions, load the SQL file located at config/Schema/sessions.sql
393 */
394 'Session' => [
395 'defaults' => 'php',
396 ],
397
398 /*
399 * Aws S3 Configuration
400 */
401 's3' => [
402 'key' => 'AKIAIXD2LIRIHRMHT5LQ',
403 'secret' => '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',
404 'bucket' => 'img-test.jba.co.id',
405 'region' => 'ap-southeast-1',
406 ],
407
408 /*
409 * Web Service API Configuration
410 */
411 'ws-api' => [
412 'base-url' => 'https://web-api-test.jba.co.id/',
413 'headers' => [
414 'App-Token' => '0uMmYT0k3N'
415 ]
416 ],
417
418 /* API MOBILE BIDDING */
419 'mobile-bidding-api' => [
420 'base-url' => 'https://mobile-bidding-api-dev.jba.co.id/',
421 'app-token' => '0uMmYT0k3N',
422 'key-jwt' => 'IOqI985MNUYoI3XSeZ1GjHEAu89tTwe4'
423 ],
424
425 /*
426 * Web Service API Configuration
427 */
428 'domain-img-src' => 'https://img.jba.co.id',
429
430 /*
431 * Web Service API Configuration
432 */
433 'hosting' => [
434 'base-url' => 'http://dev.jba.co.id'
435 ],
436 // email from
437 'email_from' => 'info@jba.co.id',
438 'email_name_newsletter' => 'JBA Lelang Otomoitf',
439 'email_to' => [
440 'karir@jba.co.id'
441 ],
442
443 'payment-account' => [
444 '5-1' => [
445 'account_car' => '1291300000',
446 'account_bike' => '1291300001',
447 'label' => 'Nomor Virtual Account',
448 'text' => 'BCA Virtual Account'
449 ],
450 '5-3' => [
451 'account_car' => '8808',
452 'account_bike' => '8808',
453 'label' => 'Nomor Virtual Account',
454 'text' => 'Mandiri Virtual Account'
455 ],
456 '3-1' => [
457 'account_car' => '8809',
458 'account_bike' => '8809',
459 'label' => 'Nomor Bank Account',
460 'text' => 'Transfer Bank BCA'
461 ],
462 '3-3' => [
463 'account_car' => '8810',
464 'account_bike' => '8810',
465 'label' => 'Nomor Bank Account',
466 'text' => 'Transfer Bank Mandiri'
467 ],
468
469 ],
470 'company-code' => [
471 'mandiri' => '89964'
472 ],
473 'minimum-outstanding' => [
474 'sisa_pembayaran' => '500000'
475 ],
476 /*
477 * option payment gateway
478 */
479 'payment-api' => [
480 'base-url' => 'https://payment-gateway-api-dev.jba.co.id/',
481 'headers' => [
482 'Key' => 'XxfOtMSMhjoMQEPUHju4u7jkCEpZ09',
483 'Content-type' => 'application/x-www-form-urlencoded'
484 ]
485 ],
486];
487