forked from Minds/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.example.php
112 lines (96 loc) · 2.77 KB
/
settings.example.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
$CONFIG = Minds\Core\Di\Di::_()->get('Config');
/*
* Cassandra configuration
*/
$CONFIG->cassandra = (object) [
'keyspace' => '{{cassandra-keyspace}}',
'servers' => [ '{{cassandra-server}}' ],
'cql_servers' => [ '{{cassandra-server}}:9042' ]
];
/**
* Other Elgg Settings
*/
$CONFIG->installed = true;
$CONFIG->path = '{{path}}';
$CONFIG->plugins_path = '{{path}}plugins/';
$CONFIG->pluginspath = '{{path}}plugins/';
$CONFIG->dataroot = '{{dataroot}}';
$CONFIG->default_site = '{{default-site}}';
$CONFIG->site_id = '{{default-site}}';
$CONFIG->__site_secret__ = '{{site-secret}}';
/**
* Overrides default system cache path from inside data root to custom location.
*
* @global string $CONFIG->system_cache_path
* @name $CONFIG->system_cache_path
*/
$CONFIG->system_cache_path = '{{cache-path}}';
/**
* Elasticsearch Settings
*/
//server for elasticsearch
$CONFIG->elasticsearch_server = '{{elasticsearch-server}}';
//namespace
$CONFIG->elasticsearch_prefix = '{{elasticsearch-prefix}}';
/**
* Memcache setup (optional)
* This is where you may optionally set up memcache.
*
* Requirements:
* 1) One or more memcache servers (http://www.danga.com/memcached/)
* 2) PHP memcache wrapper (http://uk.php.net/manual/en/memcache.setup.php)
*
* Note: Multiple server support is only available on server 1.2.1
* or higher with PECL library > 2.0.0
*/
/*$CONFIG->memcache = true;
$CONFIG->memcache_servers = array (
array('server1', 11211),
array('server2', 11211)
);*/
/**
* Use non-standard headers for broken MTAs.
*
* The default header EOL for headers is \r\n. This causes problems
* on some broken MTAs. Setting this to TRUE will cause Elgg to use
* \n, which will fix some problems sending email on broken MTAs.
*
* @global bool $CONFIG->broken_mta
*/
$CONFIG->broken_mta = false;
/**
* Minimum password length
*
* This value is used when validating a user's password during registration.
*
* @global int $CONFIG->min_password_length
*/
$CONFIG->min_password_length = 6;
$CONFIG->set('plugins', [
'Messager',
'Groups',
'blog',
'archive'
]);
$CONFIG->set('sockets-jwt-secret', '{{jwt-secret}}');
$CONFIG->set('sockets-jwt-domain', '{{jwt-domain}}');
$CONFIG->set('sockets-server-uri', '{{socket-server-uri}}');
$CONFIG->set('facebook', [
'app_id' => '{{facebook-app-id}}',
'app_secret' => '{{facebook-app-secret}}'
]);
$CONFIG->set('twilio', [
'account_sid' => '{{twilio-account-sid}}',
'auth_token' => '{{twilio-auth-token}}',
'from' => '{{twilio-from}}'
]);
$CONFIG->set('google', [
'geolocation' => '{{google-api-key}}',
'translation' => '{{google-api-key}}',
'push' => '{{google-api-key}}',
]);
$CONFIG->set('apple', [
'sandbox' => '{{apple-sandbox-enabled}}',
'cert' => '{{apple-certificate}}'
]);