· 9 years ago · Nov 09, 2016, 10:36 PM
1<?php
2
3/**
4 * Global Configuration Override
5 *
6 * You can use this file for overriding configuration values from modules, etc.
7 * You would place values in here that are agnostic to the environment and not
8 * sensitive to security.
9 *
10 * @NOTE: In practice, this file will typically be INCLUDED in your source
11 * control, so do not include passwords or other sensitive information in this
12 * file.
13 */
14/**Ambiente LOCAL*/
15$environment = 'local';
16$environmentRabbit = '3cdev';
17$environmentElement = 'dev.3c';
18
19/**Ambiente DEV 3B*/
20$environment = 'dev3b';
21$environmentRabbit = '3bdev';
22$environmentElement = 'dev.3c';
23
24/**Ambiente PRE 3B*/
25$environment = 'pre3b';
26$environmentRabbit = '3bpre';//'3cdev';//3dev;
27$environmentElement = 'pre.3';//'dev.3c';
28
29/**Ambiente PRE 3C*/
30$environment = 'pre3c';
31$environmentRabbit = '3cpre';//'3cdev';//3dev;
32$environmentElement = 'pre.3c';//'dev.3c';
33
34/**Ambiente DEV 3C*/
35$environment = 'dev3c';
36$environmentApi = 'dev.3c';
37$environmentRabbit = '3cdev';
38$environmentElement = 'dev.3c';
39
40/**Ambiente PRE*/
41$environment = 'pre';
42$environmentApi = 'pre.3';
43$environmentRabbit = '3pre';//'3cdev';//3dev;
44$environmentElement = 'pre.3';//'dev.3c';
45
46/**Ambiente DEV*/
47/*$environment = 'dev';*/
48$environment = 'local';
49//$environmentMysql = 'pre';
50//$environmentApi = 'pre';
51$environmentMysql = 'local';//'local'; //'dev3c'; // dev3c // local
52$environmentApi = 'dev.3c';
53$environmentRabbit = '3dev';
54$environmentElement = 'dev.3c';
55$environmentMongo = 'local';
56//$environmentElement = 'pre.3';
57
58/**Ambiente PRODUCCION*/
59/*$environment = 'production';
60$environmentApi = 'pro';*/
61
62$db = array(
63 'production' => array(
64 'database' => 'db_urbania3_pro',
65 'username' => 'des_urbania3',
66 'password' => 'AwahleiChaex4r',
67 'hostname' => '184.73.215.249',
68 'port' => '3316',
69 ),
70 'development' => array(
71 'hostname' => '54.91.168.164',
72 'database' => 'db_urbania3_dev',
73 'username' => 'usr_urbania3_dev',
74 'password' => 'boseish5Daithu',
75 'port' => '3306',
76 ),
77 'pre' => array(
78 'hostname' => '54.91.168.164',
79 'database' => 'db_urbania3_pre',
80 'username' => 'usr_urbania3_pre',
81 'password' => 'boseish5Daithu',
82 'port' => '3306',
83 ),
84 'pre3b' => array(
85 'hostname' => '54.91.168.164', //'184.73.9.91', //127.0.0.1 // 54.91.168.164
86 'database' => 'db_urbania3b_pre',
87 'username' => 'usr_urb3b_pre',
88 'password' => 'Iw6ey8ShahJaLu',
89 'port' => '3306',
90 ),
91 'pre3c' => array(
92 'dbname' => 'db_urbania3c_pre',
93 'username' => 'usr_urban3c_pre',
94 'password' => 'gieTiQuei0caez',
95 'host' => '54.91.168.164', //'184.73.9.91', //127.0.0.1 // 54.91.168.164
96 'port' => '3306',
97 ),
98 'local' => array(
99 'database' => 'db_urbania3_local',
100 'username' => 'root',
101 'password' => '1234',
102 'hostname' => 'mysqlhost',
103 'port' => '3306'
104 ),
105 'migration' => array(
106 'database' => 'urbania3migdb_app',
107 'username' => 'urbania3mig',
108 'password' => 'boseish5Daithu',
109 'hostname' => '54.225.25.157',
110 'port' => '3306',
111 ),
112 'dev3b' => array(
113 'database' => 'db_urbania3b_dev',
114 'username' => 'usr_urb3b_dev',
115 'password' => 'ahbooheem2oNee',
116 'hostname' => '54.91.168.164',
117 'port' => '3306',
118 ),
119 'dev3c' => array(
120 'database' => 'db_urbania3c_dev',
121 'username' => 'usr_urban3c_dev',
122 'password' => 'gieTiQuei0caez',
123 'hostname' => '54.91.168.164',
124 'port' => '3306',
125 ),
126 'dev' => array(
127 /*
128 'database' => 'db_urbania3_dev',
129 'username' => 'usr_urbania3_dev',
130 'password' => 'boseish5Daithu',
131 'hostname' => '54.91.168.164',
132 'port' => '3306',
133
134 'database' => 'db_urbania3c_dev',
135 'username' => 'usr_urban3c_dev',
136 'password' => 'gieTiQuei0caez',
137 'hostname' => '54.91.168.164',
138 'port' => '3306',*/
139 /*'database' => 'db_urbania3c_dev',
140 'username' => 'usr_urban3c_dev',
141 'password' => 'gieTiQuei0caez',
142 'hostname' => '54.91.168.164',
143 'port' => '3306'*/
144 ),
145);
146
147$mongo = array(
148 'dev3b' => array(
149 'dbname' => 'urbania3bdevmdb',
150 'host' => '54.81.150.43',
151 'port' => '27017',
152 'username' => 'usr_urbania3b_dev',
153 'password' => 'rie5raeshi9eeB'
154 ),
155 'dev3c' => array(
156 'dbname' => 'mdb_urbania3c_dev',
157 'host' => '54.81.150.43',
158 'port' => '27017',
159 'username' => 'usr_urbania3c_dev',
160 'password' => 'rie5raeshi9eeL',
161 'connectTimeoutMS' => 99999
162 ),
163 'dev' => array(
164// 'dbname' => 'urbania3devmdb',
165// 'host' => '10.167.192.243',
166// 'port' => '27017',
167// 'username' => 'usr_urbania3_dev',
168// 'password' => 'A1700s9jnnxx',
169// 'connectTimeoutMS' => 99999
170 //credenciales nuevas dev
171 'dbname' => 'urbania3devmdb',
172 'host' => '54.81.150.43',
173 'port' => '27017',
174 'username' => 'usr_urbania3_dev',
175 'password' => 'A1700s9jnnxx',
176 'connectTimeoutMS' => 99999
177 ),
178 /*
179 'pre' => array(
180 'dbname' => 'urbania3premdb',
181 'host' => '50.17.165.135',
182 'port' => '27017',
183 'username' => 'usr_urbania3_pre',
184 'password' => 'rie5raeshi9eeC',
185 'connectTimeoutMS' => 99999
186 ),
187*/
188 'pre' => array(
189 'dbname' => 'urbania3devmdb_local',
190 'host' => 'mongohost',
191 'port' => '27017',
192 'username' => 'usr_urbania3_local',
193 'password' => '1234',
194 //'connectTimeoutMS' => 99999
195 ),
196 /*'pre' => array(
197 'dbname' => 'urbania',
198 'host' => '172.17.42.1',
199 'port' => '27019',
200 'username' => 'urbania',
201 'password' => 'password123',
202 'connectTimeoutMS' => 99999
203 ),*/
204 'pre3b' => array(
205 'dbname' => 'urbania3bpremdb',
206 'host' => '50.17.165.135',
207 'port' => '27017',
208 'username' => 'usr_urbania3b_pre',
209 'password' => 'rie5raeshi9eeD',
210 'connectTimeoutMS' => 99999
211 ),
212 'pre3c' => array(
213 'dbname' => 'mdb_urbania3c_pre',
214 'host' => '54.81.150.43',
215 'port' => '27017',
216 'username' => 'usr_urbania3c_pre',
217 'password' => 'rie5raeshi9eeM',
218 'connectTimeoutMS' => 99999
219 ),
220 'dev' => array(
221 'dbname' => 'urbania3devmdb_local',
222 'host' => 'mongohost',
223 'port' => '27017',
224 'username' => 'usr_urbania3_local',
225 'password' => '1234',
226 //'connectTimeoutMS' => 99999
227 ),
228 'local' => array(
229 'dbname' => 'urbania3devmdb_local',
230 'host' => 'mongohost',
231 'port' => '27017',
232 'username' => 'usr_urbania3_local',
233 'password' => '1234',
234 'connectTimeoutMS' => -1
235 )
236
237);
238$solrEnvironment = $environment;
239$solr = array(
240 'local' => array(
241 'host' => '192.168.131.243',
242 'port' => 8080,
243 'path' => '/solr-49',
244 ),
245 'dev3c' => array(
246 'host' => '174.129.77.186',
247 'port' => 19090,
248 'path' => '/urbania3cdev',
249 ),
250 'dev3b' => array(
251 'host' => '174.129.77.186',
252 'port' => 19090,
253 'path' => '/urbania3bdev',
254 ),
255 'dev' => array(
256 'host' => '174.129.77.186',
257 'port' => 19090,
258 'path' => '/urbania3dev',
259 ),
260 'pre' => array(
261 'host' => '174.129.77.186',
262 'port' => 19090,
263 'path' => '/urbania3pre',
264 ),
265 'pre3b' => array(
266 'host' => '174.129.77.186',
267 'port' => 19090,
268 'path' => '/urbania3bpre',
269 ),
270 'pre3c' => array(
271 'host' => '174.129.77.186',
272 'port' => 19090,
273 'path' => '/urbania3cpre',
274 )
275);
276
277return array(
278 'mobile' => array(
279//Servidores
280 'servers' => array(
281 'apphost' => array(
282 'scheme' => 'http',
283 'host' => 'local.m.urbania.ec'
284 )
285 ),
286 ),
287 'urbaniaonline' => array(
288 'servers' => array(
289 'apphost' => array(
290 'scheme' => 'http',
291 'host' => 'local.urbania.online',
292 'static' => 'local.urbania.ec'
293 )
294 ),
295 ),
296 'zf-oauth2' => array(
297 'db' => array(
298 'driver' => 'Pdo',
299 'dsn' => 'mysql:dbname=db_urbania3b_dev;host=54.91.168.164',
300 'username' => 'usr_urb3b_dev',
301 'password' => 'ahbooheem2oNee',
302 'port' => '3306',
303 'options' => array('buffer_results' => true),
304 'driver_options' => array(
305 PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'utf8\''
306 )
307 ),
308 'allow_implicit' => false, // default (set to true when you need to support browser-based or mobile apps)
309 'access_lifetime' => 3600, // default (set a value in seconds for access tokens lifetime)
310 'enforce_state' => true, // default
311 'storage' => 'ZF\OAuth2\Adapter\PdoAdapter', // service name for the OAuth2 storage adapter
312 ),
313// 'zf-oauth2' => array(
314// 'db' => array(
315// 'driver' => 'Pdo',
316// 'dsn' => 'mysql:dbname=urbania3migdb2;host=54.91.168.164',
317// 'username' => 'usr_urbania3_dev',
318// 'password' => 'boseish5Daithu',
319// 'port' => '3306',
320// 'options' => array('buffer_results' => true),
321// 'driver_options' => array(
322// PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'utf8\''
323// )
324// ),
325// 'allow_implicit' => false, // default (set to true when you need to support browser-based or mobile apps)
326// 'access_lifetime' => 3600, // default (set a value in seconds for access tokens lifetime)
327// 'enforce_state' => true, // default
328// 'storage' => 'ZF\OAuth2\Adapter\PdoAdapter', // service name for the OAuth2 storage adapter
329// ),
330 'HolMigration' => array(
331 /* BD DE DESARROLLO HOL */
332 'db' => array(
333 'driver' => 'pdo_mysql',
334 'hostname' => '54.90.206.205',//'54.225.29.136',
335 'database' => 'houseonline',
336 'username' => 'usr_hol_pre',
337 'password' => 'slp098c2smx',
338 'port' => '3306',
339 'options' => array('buffer_results' => true),
340 'driver_options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'utf8\'')
341 ),
342 'param' => array(
343 'keys' => array('urBania', 'URBANIA', 'URbania', 'urBanias', 'URBANIAS',
344 'URbanias'),
345 'urlImages' => 'http://54.204.118.76/fotos/inmuebles/'
346 )
347 ),
348 'db' => array_merge(
349 array(
350 'driver' => 'pdo_mysql',
351 'options' => array('buffer_results' => true),
352 'profiler' => true,
353 'driver_options' => array(
354 PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'utf8\''
355 )
356 ), $db[$environmentMysql]
357 ),
358 'app' => array(
359 'itemsByPage' => 5,
360 'itemsByPageMapa' => 50,
361 ),
362 'cdn' => array(
363 'link_helper' => array(
364 'enabled' => true,
365 ),
366 'servers' => array(
367 'static_0' => array(
368 'scheme' => 'http',
369 'host' => 'local.urbania.ec/static',//'pre.s.3.urbania.e3.pe/static',
370 'port' => NULL,
371 ),
372 ),
373 'elements' => array(
374 'element_0' => array(
375 'scheme' => 'http',
376// 'host' => 'local.urbania.ec:81/elements',
377 'host' => $environmentElement.'.e3.urbania.pe/elements',
378 //'host' => $environmentElement.'.urbania.e3.pe/elements',
379 //'host' => 'local.urbania.ec/elements',//'pre.s.3.urbania.e3.pe/static',
380 'port' => NULL,
381 ),
382 ),
383 'file_lastCommit' => 'last_commit'
384 ),
385 'core' => array(
386 'php' => array(
387 'settings' =>
388 array(
389 'session.cookie_domain' => 'local.urbania.ec',
390 'display_startup_errors' => true,
391 'display_errors' => true,
392 'error_reporting' => E_ALL,
393 )
394 ),
395 ),
396 'mongodb' => array(
397 'db' => $mongo[$environmentMongo],
398 'enable' => true
399 ),
400// 'rabbitMQ' => array(
401// 'host' => '192.168.131.242',
402// 'user' => 'dev_rabbit',
403// 'pass' => 'oMITTarw8pJfSN',
404// 'host' => '10.85.138.3',
405// 'port' => '5672',
406// 'user' => 'dev_rabbit',
407// 'pass' => 'oMITTarw8pJfSN',
408// 'user' => 'guest',
409// 'pass' => 'guest',
410// ),
411// 'rabbitMQ' => array(
412// //--- 'host' => '50.17.165.135',
413//// 'host' => '172.30.51.66',
414//// 'host' => '50.17.165.135',
415// 'host' => '192.168.131.243',
416// 'port' => '5672',
417//// 'user' => 'dev_rabbit',
418//// 'user' => 'dev_rabbit',
419// 'user' => 'guest',
420//// 'pass' => 'oMITTarw8pJfSN',
421//// 'pass' => 'oMITTarw8pJfSN',
422// 'pass' => 'guest',
423// 'vhost' => '/'
424// ),
425// 'solarium' => array(
426// 'endpoint' => array(
427// 'aviso' => array(
428// 'host' => '10.180.217.106',
429// 'port' => 8080,
430// 'path' => '/urbania3',
431// 'core' => 'aviso',
432// 'timeout' => 15
433// ),
434// 'inmueble' => array(
435// 'host' => '10.180.217.106',
436// 'port' => 8080,
437// 'path' => '/urbania3',
438// 'core' => 'inmueble',
439// 'timeout' => 15
440// ),
441// 'proyecto' => array(
442// 'host' => '10.180.217.106',
443// 'port' => 8080,
444// 'path' => '/urbania3',
445// 'core' => 'proyecto',
446// 'timeout' => 15
447// ),
448// 'ubigeo' => array(
449// 'host' => '10.180.217.106',
450// 'port' => 8080,
451// 'path' => '/urbania3',
452// 'core' => 'ubigeo',
453// 'timeout' => 15
454// ),
455// 'avisos' => array(
456// 'host' => '10.180.217.106',
457// 'port' => 8080,
458// 'path' => '/urbania3',
459// 'core' => 'avisos',
460// 'timeout' => 15
461// ),
462// 'ubigeo-online' => array(
463// 'host' => '10.180.217.106',
464// 'port' => 8080,
465// 'path' => '/urbania3',
466// 'core' => 'ubigeo-online',
467// 'timeout' => 15
468// )
469// )
470// ),
471 'solarium' => array(
472 'endpoint' => array(
473 'aviso' => array(
474 'host' => $solr[$solrEnvironment]['host'],
475 'port' => $solr[$solrEnvironment]['port'],
476 'path' => $solr[$solrEnvironment]['path'],
477 'core' => 'aviso',
478 'timeout' => 15
479 ),
480 'inmueble' => array(
481 'host' => $solr[$solrEnvironment]['host'],
482 'port' => $solr[$solrEnvironment]['port'],
483 'path' => $solr[$solrEnvironment]['path'],
484 'core' => 'inmueble',
485 'timeout' => 15
486 ),
487 'proyecto' => array(
488 'host' => $solr[$solrEnvironment]['host'],
489 'port' => $solr[$solrEnvironment]['port'],
490 'path' => $solr[$solrEnvironment]['path'],
491 'core' => 'proyecto',
492 'timeout' => 15
493 ),
494 'ubigeo' => array(
495 'host' => $solr[$solrEnvironment]['host'],
496 'port' => $solr[$solrEnvironment]['port'],
497 'path' => $solr[$solrEnvironment]['path'],
498 'core' => 'ubigeo',
499 'timeout' => 15
500 ),
501 'avisos' => array(
502 'host' => $solr[$solrEnvironment]['host'],
503 'port' => $solr[$solrEnvironment]['port'],
504 'path' => $solr[$solrEnvironment]['path'],
505 'core' => 'avisos',
506 'timeout' => 15
507 ),
508 'ubigeo-online' => array(
509 'host' => $solr[$solrEnvironment]['host'],
510 'port' => $solr[$solrEnvironment]['port'],
511 'path' => $solr[$solrEnvironment]['path'],
512 'core' => 'ubigeo-online',
513 'timeout' => 15
514 )
515 )
516 ),
517// 'solarium' => array(
518// 'endpoint' => array(
519// 'aviso' => array(
520// 'host' => '192.168.105.23',
521// 'port' => 8080,
522// 'path' => '/solr',
523// 'core' => 'aviso',
524// 'timeout' => 20
525// ),
526// 'proyecto' => array(
527// 'host' => '192.168.105.23',
528// 'port' => 8080,
529// 'path' => '/solr',
530// 'core' => 'proyecto',
531// 'timeout' => 20
532// ),
533// 'ubigeo' => array(
534// 'host' => '192.168.105.23',
535// 'port' => 8080,
536// 'path' => '/solr',
537// 'core' => 'ubigeo',
538// 'timeout' => 30
539// )
540// )
541// ),
542// 'solarium' => array(
543// 'endpoint' => array(
544// 'aviso' => array(
545// 'host' => '10.85.138.3',
546// 'port' => 19090,
547// 'path' => '/urbania3dev',
548// 'core' => 'aviso',
549// 'timeout' => 15
550// ),
551// 'proyecto' => array(
552// 'host' => '10.85.138.3',
553// 'port' => 19090,
554// 'path' => '/urbania3dev',
555// 'core' => 'proyecto',
556// 'timeout' => 15
557// ),
558// 'ubigeo' => array(
559// 'host' => '10.85.138.3',
560// 'port' => 19090,
561// 'path' => '/urbania3dev',
562// 'core' => 'ubigeo',
563// 'timeout' => 15
564// )
565// ),
566// ),
567 'rabbitMQ' => array(
568 'host' => '50.17.165.135',
569 //'host' => '172.17.42.1',
570 'port' => '5672',
571 //'port' => '15673',
572 'user' => 'dev_rabbit',
573 'pass' => 'oMITTarw8pJfSN',
574 'vhost' => '/',
575 'enabled' => true,
576 'debug' => false,
577 'publisher' => array(
578 'aviso.solr' => array(
579 'exchange' => 'exchange.urbania'.$environmentRabbit.'.solr.aviso',
580 'queue' => 'urbania'.$environmentRabbit.'_aviso_solr',
581 'properties' => array(
582 'user_id' => 'dev_rabbit',
583 'delivery_mode' => 2,
584 'content_type' => 'text/plain'
585 )
586 ),
587 'avisos.solr' => array(
588 'exchange' => 'exchange.urbania'.$environmentRabbit.'.solr.avisos',
589 'queue' => 'urbania'.$environmentRabbit.'_avisos_solr',
590 'properties' => array(
591 'user_id' => 'dev_rabbit',
592 'delivery_mode' => 2,
593 'content_type' => 'text/plain'
594 )
595 ),
596 'proyecto.solr' => array(
597 'exchange' => 'exchange.urbania'.$environmentRabbit.'.solr.proyecto',
598 'queue' => 'urbania'.$environmentRabbit.'_proyecto_solr',
599 'properties' => array(
600 'user_id' => 'dev_rabbit',
601 'delivery_mode' => 2,
602 'content_type' => 'text/plain'
603 )
604 ),
605 'tienda.solr' => array(
606 'exchange' => 'exchange.urbania'.$environmentRabbit.'.solr.tienda',
607 'queue' => 'urbania'.$environmentRabbit.'_tienda_solr',
608 'properties' => array(
609 'user_id' => 'dev_rabbit',
610 'delivery_mode' => 2,
611 'content_type' => 'text/plain'
612 )
613 ),
614 'ubigeo.solr' => array(
615 'exchange' => 'exchange.urbania'.$environmentRabbit.'.solr.ubigeo',
616 'queue' => 'urbania'.$environmentRabbit.'_ubigeo_solr',
617 'properties' => array(
618 'user_id' => 'dev_rabbit',
619 'delivery_mode' => 2,
620 'content_type' => 'text/plain'
621 )
622 ),
623 'estadistica.search.solr' => array(
624 'exchange' => 'exchange.urbania'.$environmentRabbit.'.estadistica.search.solr.local',
625 'queue' => 'urbania3dev_estadistica_solr_search.local',
626 'properties' => array(
627 'user_id' => 'dev_rabbit',
628 'delivery_mode' => 2,
629 'content_type' => 'text/plain'
630 ),
631 'enabled' => false,
632 'debug' => false
633 ),
634 'imagen' => array(
635 'exchange' => 'exchange.urbania'.$environmentRabbit.'.imagen.local',
636 'queue' => 'urbania'.$environmentRabbit.'_imagen_local',
637 'properties' => array(
638 'user_id' => 'dev_rabbit',
639 'delivery_mode' => 2,
640 'content_type' => 'text/plain'
641 )
642 ),
643 'imagen.no.publication' => array(
644 'exchange' => 'exchange.'.$environmentRabbit.'.imagen.no.publication',
645 'queue' => 'urbania'.$environmentRabbit.'_imagen_no_publication',
646 'properties' => array(
647 'user_id' => 'dev_rabbit',
648 'delivery_mode' => 2,
649 'content_type' => 'text/plain'
650 )
651 ),
652 'imagen.replace' => array(
653 'exchange' => 'exchange.urbania'.$environmentRabbit.'.imagen.replace',
654 'queue' => 'urbania3dev_imagen.replace',
655 'properties' => array(
656 'user_id' => 'dev_rabbit',
657 'delivery_mode' => 2,
658 'content_type' => 'text/plain'
659 )
660 ),
661 'imagen.migration' => array(
662 'exchange' => 'exchange.urbania'.$environmentRabbit.'.imagen.migration',
663 'queue' => 'urbania3dev_imagen_migration',
664 'properties' => array(
665 'user_id' => 'dev_rabbit',
666 'delivery_mode' => 2,
667 'content_type' => 'text/plain'
668 )
669 ),
670 'email' => array(
671 'exchange' => 'exchange.urbania'.$environmentRabbit.'.email',
672 'queue' => 'urbania3dev_email',
673 'properties' => array(
674 'user_id' => 'dev_rabbit',
675 'delivery_mode' => 2,
676 'content_type' => 'text/plain'
677 )
678 ),
679 'aviso.mongodb' => array(
680 'exchange' => 'exchange.urbania'.$environmentRabbit.'.mongodb.aviso',
681 'queue' => 'urbania3dev_aviso_mongodb',
682 'properties' => array(
683 'user_id' => 'dev_rabbit',
684 'delivery_mode' => 2,
685 )
686 ),
687 'aviso.houseonline' => array(
688 'exchange' => 'exchange.urbania3c.aviso.house',
689 'queue' => 'urbania3_aviso_house',
690 'properties' => array(
691 'user_id' => 'dev_rabbit',
692 'delivery_mode' => 2,
693 )
694 ),
695 ),
696 'consumer' => array(
697 'imagen.no.publication' => array(
698 'exchange' => 'exchange.urbania'.$environmentRabbit.'.imagen.no.publication',
699 'queue' => 'urbania'.$environmentRabbit.'_imagen_no_publication',
700 'consumer_tag' => 'consumer',
701 'properties' => array(
702 'user_id' => 'dev_rabbit',
703 'delivery_mode' => 2,
704 'content_type' => 'text/plain'
705 )
706 ),
707 )
708 ),
709// 'solarium' => array(
710// 'endpoint' => array(
711// 'aviso' => array(
712// 'host' => '10.67.167.67',
713// 'port' => 19090,
714// 'path' => '/urbania3dev',
715// 'core' => 'aviso',
716// 'timeout' => 15
717// ),
718// 'proyecto' => array(
719// 'host' => '10.67.167.67',
720// 'port' => 19090,
721// 'path' => '/urbania3dev',
722// 'core' => 'proyecto',
723// 'timeout' => 15
724// ),
725// 'ubigeo' => array(
726// 'host' => '10.67.167.67',
727// 'port' => 19090,
728// 'path' => '/urbania3dev',
729// 'core' => 'ubigeo',
730// 'timeout' => 15
731// )
732// ),
733// 'baseSolr' => 'http://dev.solr.orbis.pe/urbania3dev', // http://pre.solr.orbis.pe/urbania3pre
734// ),
735 'lammimage' => array(
736 'options' => array(
737 'path' => ''
738 ),
739 //'server.elements' => 'http://dev.3c.urbania.e3.pe',
740// 'server.elements' => 'http://'.$environmentElement.'.urbania.e3.pe',
741 'server.elements' => 'http://'.$environmentElement.'.e3.urbania.pe',
742// 'server.elements' => 'http://elementshost',
743 //'server.elements' => 'http://local.e3.urbania.ec',
744 'rest' => array(
745 'image' => '/api/v1/imagen/',
746 'temp' => '/api/v1/temp/',
747 'resize.image' => '/api/v1/imagen/resize/',
748 'file' => '/api/v1/file/',
749 ),
750 'path' => '/elements',
751 'proxy' => array(
752 'proxy_host' => '172.21.0.83',
753 'proxy_port' => 3128,
754 'enabled' => false
755 )
756 ),
757 'service_manager' => array(
758 'factories' => array(
759 'Zend\Cache\Storage\Memcached' => function($sm) {
760 $cache = Zend\Cache\StorageFactory::factory(array(
761 'adapter' => 'filesystem',
762 'plugins' => array(
763 'exception_handler' => array('throw_exceptions' => false),
764 'serializer'
765 )
766 ));
767 $cache->setOptions(array(
768 'cache_dir' => './data/cache',
769 'readable' => true,
770 'ttl' => 3600
771 ));
772
773 return $cache;
774 },
775 /*'Zend\Db\Adapter\Adapter' => function ($sm) use ($db, $environment) {
776 $adapter = new BjyProfiler\Db\Adapter\ProfilingAdapter(array(
777 'driver' => 'pdo',
778 'dsn' => 'mysql:dbname='.$db[$environment]['database'].';host='.$db[$environment]['hostname'],
779 'database' => $db[$environment]['database'],
780 'username' => $db[$environment]['username'],
781 'password' => $db[$environment]['password'],
782 'hostname' => $db[$environment]['hostname'],
783 ));
784
785 if (php_sapi_name() == 'cli') {
786 $logger = new Zend\Log\Logger();
787 // write queries profiling info to stdout in CLI mode
788 $writer = new Zend\Log\Writer\Stream('php://output');
789 $logger->addWriter($writer, Zend\Log\Logger::DEBUG);
790 $adapter->setProfiler(new BjyProfiler\Db\Profiler\LoggingProfiler($logger));
791 } else {
792 $adapter->setProfiler(new BjyProfiler\Db\Profiler\Profiler());
793 }
794 if (isset($dbParams['options']) && is_array($dbParams['options'])) {
795 $options = $dbParams['options'];
796 } else {
797 $options = array();
798 }
799 $adapter->injectProfilingStatementPrototype($options);
800 return $adapter;
801 },*/
802 ),
803 ),
804 'view_manager' => array(
805 'base_path' => "http://local.urbania.ec",
806 'elements_path' => 'http://dev.3c.e3.urbania.ec/elements',
807 'display_not_found_reason' => true,
808 'display_exceptions' => true,
809 ),
810 'router' => include 'routes.config.php',
811 'peruIdLocal' => true, //Para implementar peruID local
812 'feed' => array(
813 //Proxy para pruebas (enabled_proxy = false para ambiente producción)
814 'proxy' => array(
815 'proxy_host' => '172.21.0.83',
816 'proxy_port' => 3128,
817 ),
818 'enabled_proxy' => false,
819 'url_distrito' => 'http://dev.2.blog.urbania.pe/category/ate/feed/',
820 'url_casa' => 'http://dev.2.blog.urbania.pe/category/casa-y-mas/feed/',
821 'url_last' => 'http://dev.2.blog.urbania.pe/feed/'
822 ),
823 'peruID' => array(
824 'params' => array(
825 'urlPortal' => 'ed7877ffb0d10b04e390b37c02fbaea1', // apiKey
826 'secretKey' => '9e3d6defa10b71f5a498d9b8aa49a0b4',
827 ),
828 'url' => array(
829 'rest_insert' => 'http://pre.peruid.pe/service/usuarios/rest_insert',
830 'rest_user_exist' => 'http://pre.peruid.pe/index.php/service/usuarios/rest_user_exist/correo/',
831 'rest_user' => 'http://pre.peruid.pe/index.php/service/usuarios/rest_user/',
832 'rest_genera_token_registro' => 'http://pre.peruid.pe/service/usuarios/rest_genera_token_registro/apikey/',
833 'rest_update' => 'http://pre.peruid.pe/index.php/service/usuarios/rest_update/',
834 'rest_data' => 'http://pre.peruid.pe/index.php/service/usuarios/rest_data/apikey/',
835 'base' => 'http://pre.peruid.pe',
836 'movil_inicia' => 'http://pre.peruid.pe/index.php/movil/inicia_session',
837 ),
838 'proxy' => array(
839 'proxy_host' => '172.21.0.83',
840 'proxy_port' => 3128,
841 ),
842 'enabled_proxy' => false,
843 ),
844 'piwik' => array(
845 'options' => array(
846 'token_auth' => 'f6e209c8727ced68cde97bae4371e0dc',
847 'url' => 'http://dev.piwik.ec.pe/index.php',
848 'host' => 'dev.piwik.ec.pe/',
849 'module' => 'API',
850 'idSite' => '3',
851 'period' => 'range',
852 'enabled' => true
853 ),
854 'proxy' => array(
855 'proxy_host' => '172.21.0.83',
856 'proxy_port' => 3128,
857 'enabled' => true
858 )
859 ),
860 'socialMediaUrl' => "http://dev.3.urbania.pe",
861 'SocialMedia' => array(
862 'facebook' => array(
863 'url' => 'http://graph.facebook.com/?id=',
864 'timeout' => 50,
865 'enabled' => true
866 ),
867 'twitter' => array(
868 'url' => 'http://urls.api.twitter.com/1/urls/count.json?url=',
869 'timeout' => 50,
870 'enabled' => true
871 ),
872 'proxy' => array(
873 'proxy_host' => '172.21.0.83',
874 'proxy_port' => 3128,
875 'enabled' => false
876 )
877 ),
878 'gmap' => array(
879 'apikey' => '',
880 'version' => '1.0',
881 'enabled'=>false
882 ),
883 'StatisticsModel' => array(
884 'enabled' => true,
885 'rangeDay' => 1
886 ),
887 'domain.referer' => array(
888 'allowed' => array(
889 'http://local.urbania.ec/',
890 'http://landing.comercio.local/'
891 )
892 ),
893 'mail' => array(
894 'transport' => array(
895 'options' => array(
896 //'auth' => 'plain',
897 'host' => 'mailtrap.io',
898 'port' => 2525,
899 'connection_class' => 'plain',
900 'connection_config' => array(
901 'username' => '04e782e85f29ce',
902 'password' => '4af2157cd2676d',
903 ),
904 /*'host' => 'smtp.postmarkapp.com',
905 'port' => 25,
906 'connection_class' => 'plain',
907 'connection_config' => array(
908 'username' => '28125981-4add-4b30-8f44-31e12e11ca78',
909 'password' => '28125981-4add-4b30-8f44-31e12e11ca78',
910 ),*/
911
912 ),
913 ),
914 'fromEmail' => 'michael.hernandez@clicksandbricks.pe',
915 'fromName' => 'Urbania',
916 'enabled' => true,
917 'list.allowed' => array(
918 'enabled' => false,
919 'domains' => array(
920 'ecodigital.pe'
921 ),
922 'emails' => array(
923 'eder.luis@orbis.pe',
924 'steven.ortiz@orbis.pe',
925 'michael.hernandez@clicksandbricks.pe',
926 'soporteurbania@orbis.pe'
927 )
928 ),
929 'dir' => __DIR__ . '/../email',
930 'show_log' => true
931 ),
932 //=============== Parametros para el proceso de Conciliacion ======================
933 'adecsys' => array(
934 'url' => 'http://pre.wsadecsys.ec.pe/INTEGRACIONAPTITUS.ASMX?wsdl',
935 'contrato' => 'http://pre.wsadecsys.ec.pe/Integracioncontratos.asmx?wsdl',
936 'urbania' => 'http://pre.wsadecsys.ec.pe/IntegracionUrbania.asmx?wsdl',
937 ),
938 'google_engine' => array(
939 'SERVICE_CLIENT_ID' => '83670980957-44ald1hf2gipsotqe3tlp729i01o15ce.apps.googleusercontent.com',
940 'SERVICE_ACCOUNT_EMAIL' => '83670980957-44ald1hf2gipsotqe3tlp729i01o15ce@developer.gserviceaccount.com',
941 'KEY_FILE' => __DIR__.'/Urbania-af74b17c97e3.p12',
942 'SERVICES' => array(
943 'casinos'=>'01677429799447012057-05414812628978701557',
944 'cines'=>'01677429799447012057-16071188762309719429',
945 'clubes'=>'01677429799447012057-09507073323105492707',
946 'fastfood'=>'01677429799447012057-12798225287603138914',
947 'grifos'=>'01677429799447012057-08112974690991164587',
948 'hoteles'=>'01677429799447012057-11853667273131550346',
949 'malls'=>'01677429799447012057-08551536342581976716',
950 'mercado'=>'01677429799447012057-16143158689603361093',
951 'restaurantes'=>'01677429799447012057-11613121305523030954',
952 'supermercados'=>'01677429799447012057-04594044960761723980',
953 'bancos'=>'01677429799447012057-09757940799309423091',
954 'aeropuertos'=>'01677429799447012057-17488941626782682984',
955 'bomberos'=>'01677429799447012057-00161330875310406093',
956 'museos'=>'01677429799447012057-02912990955588156238',
957 'terrapuertos'=>'01677429799447012057-08887688179650036554',
958 'metro'=>'01677429799447012057-16555504137828543390',
959 'metropolitano'=>'01677429799447012057-09052745394509652502',
960 'ferreterias'=>'07549596741625252601-11853667273131550346',
961 'farmacias'=>'07549596741625252601-12798225287603138914',
962 'estado'=>'07549596741625252601-09052745394509652502',
963 'militar'=>'07549596741625252601-08887688179650036554',
964 'municipales'=>'07549596741625252601-16555504137828543390',
965 'salud'=>'07549596741625252601-17772055697785505571',
966 'educacion'=>'07549596741625252601-02912990955588156238',
967 'iglesias'=>'07549596741625252601-17468829640506321558',
968 'galerias'=>'07549596741625252601-04594044960761723980'
969 ),
970 'GEOCODE' => 'http://maps.googleapis.com/maps/api/geocode/json?address=',
971 'PAGINADO' => 10,
972 'COORDENADAS' => array(
973 'lat' => '-12.04335212100054',
974 'lng' => '-77.04298651904907',
975 )
976 ),
977 'analytics' => array(
978 'url' => 'https://servicios.analytics.pe/gpengineservices/gpenginemethods.asmx?WSDL',
979 'userName' => 'API@ORBIS.PE',
980 'password' => '#304$b1%s',
981 'idPaquete' => 1013,
982 'limit-autocomplete' => 10,
983 ),
984 'google_adwords' => array(
985 'conversion_id' => 1044937524,
986 'conversion_label' => 'Bwu9CK6OrgIQtPah8gM'
987 ),
988// 'piwik'=>array(
989// 'options'=>array(
990// 'token_auth'=>'9ae6dd74f824b96c7f45dd27498624e8',
991// 'url'=>'http://pre.piwik.ec.pe/index.php',
992// 'host'=>'pre.piwik.ec.pe/',
993// 'module'=>'API',
994// 'idSite'=>'2',
995// 'period'=>'range',
996// 'enabled'=>true
997// ),
998// 'proxy' => array(
999// 'proxy_host' => '172.21.0.83',
1000// 'proxy_port' => 3128,
1001// 'enabled' => true
1002// )
1003// ),
1004 'loginUrbania' => array(
1005 //'url_api_login' => 'http://local.urbania-api.ec/login/',
1006 //'url_api_login' => 'http://'.$environmentApi.'.api.urbania.pe/login/',
1007 'url_api_login' => 'http://apihost/login/',
1008 'cookieName' => '3_6i6zXhPQmrT-ekaZFhUJTFfohN5TwGnxPG5F4GaRJRhaD2V1PhXnkxFC1BcHRXYv',
1009 'apikey' => 'a097b7119db3b25cb3a58c0259e449e0',
1010 'enabled_api' => true,
1011 'token_expiration_day' => 2,
1012 ),
1013 'email_soporte' => 'soporteurbania@orbis.pe',
1014 'emailBccPagoPaquete' => array(
1015 'renzo.tejada@clicksandbricks.pe',
1016 'christian.gonzales@clicksandbricks.pe',
1017 ),
1018 's3Credentials' => array(
1019 'key' => 'AKIAIDQZVXN7A3XHFS3Q',
1020 'secret' => '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',
1021 'region' => 'eu-west-1'
1022 ),
1023);