-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsample-config.php
76 lines (63 loc) · 1.93 KB
/
sample-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
//define('ROOT_APP', 'home_pages');
define('SITE_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] );
define('HOME_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] );
define( 'REDIS_HOST', '127.0.0.1' );
define( 'REDIS_PORT', '6379' );
define( 'REDIS_DATABASE_GLOBAL_CACHE', '4' );
define( 'REDIS_DATABASE_SESSION_CACHE', '5' );
define( 'REDIS_DATABASE_DB', '10' );
define('LOG_EXCEPTIONS',false);
define('AWESOME_PATH', '/var/www/awesome-enterprise');
define('CONNECTIONS',
array(
'base_code'=>array(
'connection_service'=>'folder_conn',
'path'=>'/var/www/awnxt.thearks.in/base-code',
'redis_db'=>101,
'read_only'=>true,
'cache_expiry'=>300
),
'common_code'=>array(
'connection_service'=>'wp_conn',
'db_name'=>'alpha_wordp',
'db_user'=>'alphawoecKAE',
'db_password'=>'c6ZQpHWYoX5r',
'db_host'=>'localhost',
'redis_db'=>102,
'cache_expiry'=>600
),
'cdn_code'=>array(
'connection_service'=>'url_conn',
'url'=>'https://cdn.getawesomestudio.com/code',
'redis_db'=>103,
'read_only'=>true,
'cache_expiry'=>300
)
));
//define('CODE_DEFAULT_CONNECTION','base_code');
/* define database connections - that you want to use in awesome. */
define('DB_CONNECTIONS',
array(
'primary_db'=>array(
'host'=>DB_HOST,
'user'=>DB_USER,
'password'=>DB_PASSWORD
),
'external_db'=>array(
'host'=>'localhost',
'user'=>'dcwo',
'password'=>'CB1ey'
)
));
//This is required so that we can use mysqli.* as a shortcode since it is already there. In a new system this is not required
define('MYSQLI_CONNECTION','primary_db');
//this is reauired is you are planning to few urls ourside wp using different index.php file.
/** Sets up WordPress vars and included files. */
if ( !defined( 'IS_WP' ) ) {
define('IS_WP', true);
}
if( IS_WP){
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
}