-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_config.sample
executable file
·280 lines (229 loc) · 9.71 KB
/
global_config.sample
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<?php
/*************************************************************************/
/*
/* _ _ _____ _____ _____ _ _
/* /\ | \ | | __ \ / ____| | __ \ (_) | |
/* / \ | \| | | | | (___ | |__) |___ __ _ _ ___| |_ _ __ _ _
/* / /\ \ | . ` | | | |\___ \ | _ // _ \/ _` | / __| __| '__| | | |
/* / ____ \| |\ | |__| |____) | | | \ \ __/ (_| | \__ \ |_| | | |_| |
/* /_/ \_\_| \_|_____/|_____/ |_| \_\___|\__, |_|___/\__|_| \__, |
/* __/ | __/ |
/* |___/ |___/
/*
/* Registry Software Configuration
/*
/* Release Version : 17.1
/* Contact Person : [email protected]
/* Help/support : https://documentation.ardc.edu.au/
/*
/*************************************************************************/
/*************************************************************************/
/* (SECTION 1) REQUIRED CONFIGURATION OPTIONS
/*************************************************************************/
// The Release Version
$ENV['release_version'] = 'r17.1';
// Details of your database server (note: advanced settings can be modified in Sect 4)
$eDBCONF['default']['hostname'] = 'localhost'; // hostname or IP address
$eDBCONF['default']['username'] = 'webuser';
$eDBCONF['default']['password'] = '';
$eDBCONF['default']['dbdriver'] = 'mysqli';
// Name of the database being used for the registry and roles databases
$eDBCONF['registry']['database'] = 'dbs_registry';
$eDBCONF['roles']['database'] = 'dbs_roles';
$eDBCONF['vocabs']['database'] = 'dbs_vocabs';
$eDBCONF['statistics']['database'] = 'dbs_statistics';
// The Server Base URL is the URL via which users access the software installation
// (for example: http://researchdata.your.org.au/myportal/
$ENV['protocol'] = 'http://';
$ENV['default_base_url'] = $ENV['protocol']."{CONFIGURE ME}";
// The SOLR URL is the URL of the search index core which you have installed
// (for example: http://example.com:8080/solr/registry1/)
$ENV['solr_url'] = "{CONFIGURE ME}";
// The Environment options change the appearance of the software installation
// Leaving these blank will remove the name and colour-bar from all registry pages
// $ENV['environment_name'] = "My Registry";
// $ENV['environment_colour'] = "#6EBF21";
// registry mode used 'read-only' atm but more mode may follow
$ENV['registry_mode'] = "";
// Who is the administrator of this domain? [OPTIONAL]
// error reports will be emailed to this address
$ENV['site_admin'] = "Registry System Administrator";
$ENV['site_admin_email'] = "[email protected]"; // Will affect the error reporting status
$ENV['deployment_state'] = "development"; // either "production" or "development"
/*************************************************************************/
/* (SECTION 2) ENABLED MODULES
/*************************************************************************/
// Use this section to enable/disable software modules as you require.
// Note: Most of the non-default modules require additional configuration
// and installation (such as installing additional database or code
// packages). Refer to their installation notes for details.
$ENV['ENABLED_MODULES'] = array(
// Default modules (simply installs the registry, access control and portal)
'roles',
'registry',
'portal',
// - Identifier service modules
// 'mydois',
// 'pids',
// - Content Management System modules
// 'theme_cms',
// 'bulk_tag',
// 'cms',
// - Statistics dashboard
// 'statistics',
// - Twitter announcement app
// 'twitter',
// These modules require: ANDS-Developer-Portal to be installed:
// - Developer API documentation
// 'toolbox',
);
//overwrite the existing application model with a predefined environment model
// $environment_directives = array();
// $environment_directives['portal'] = array(
// "base_url" => "%%BASEURL%%/",
// "active_application" => "portal",
// "default_controller" => "vocabs",
// "routes" => array(
// "home/(:any)" => "vocabs/$1",
// "page/(:any)" => "vocabs/page/$1",
// "(:any)"=>"core/dispatcher/$1"
// ),
// "default_model" => "vocabs"
// );
// $ENV['vocab_config'] = array(
// 'toolkit_url' => '',
// 'solr_url' => '',
// 'auth_url' => '',
// 'upload_path' => ''
// );
// $ENV['enable_logging'] = true;
/*************************************************************************/
/* (SECTION 3) ADDITIONAL REGISTRY CONFIGURATION
/*************************************************************************/
// Optional parameters to enable/disable advanced registry functionality
// Replace this with the URL of your vocabulary server API (if you have one)
$ENV['sissvoc_url'] = "http://localhost:8080/vocab/api/";
// You can also use a vocab service resolve subjects based on their types
$ENV['vocab_resolving_services'] = array(
'anzsrc-seo' => array('resolvingService' => 'http://localhost:8080/vocab/api/anzsrc-seo/', 'uriprefix' => 'http://purl.org/au-research/vocabulary/anzsrc-seo/2008/'),
'anzsrc-for' => array('resolvingService' => 'http://localhost:8080/vocab/api/anzsrc-for/', 'uriprefix' => 'http://purl.org/au-research/vocabulary/anzsrc-for/2008/'),
);
// Session Timeout (how many seconds before the user gets logged out)
$ENV['session_timeout'] = 7200;
//session cookie domain
$ENV['cookie_domain'] = '';
// Is this installation configured as a Shib Service Provider (AAF)
// Note: enables AAF login (if Shibboleth 2 is properly configured)
$ENV['shibboleth_sp'] = false;
// Whether to enable advanced benchmarking in data source logs when a
// registry superuser account performs a harvest on a data source
$ENV['importer_benchmark_enabled'] = false;
// Enable Google Analytics by configuring your urchin id
$ENV['rda_urchin_id'] = ''; // enable analytics on portal pages
$ENV['svc_urchin_id'] = ''; // enable analytics on registry pages
/*********************************************************************/
/* (SECTION 4) OPTIONAL MODULES / EXTRA CONFIGURATION
/* - only if using additional modules
/*********************************************************************/
// => PORTAL STATS
// - add page and search tracking and autocomplete on portal search
// - requires dbs_portal database to be setup and configured (see misc/)
$ENV['collect_stats'] = false;
$eDBCONF['portal']['database'] = 'dbs_portal';
/*
// => ORCID PULLBACK
// - ANDS-only;
// - allows ORCID users to pull back collections into their profile
$ENV['gORCID_SERVICE_BASE_URI'] = 'http://sandbox-1.orcid.org/';
$ENV['gORCID_API_URI'] = 'http://api.sandbox-1.orcid.org/';
$ENV['gORCID_CLIENT_ID'] = '';
$ENV['gORCID_CLIENT_SECRET'] = '';
*/
/*
// => PIDS MANAGEMENT
// - ANDS-only;
// - allows users to manage and update their ANDS PIDS (or "Handles")
$ENV['pids_server_base_url'] = "@@pids_url";
$ENV['pids_server_app_id'] = "@@pids_app_id";
$ENV['gPIDS_URL_PREFIX'] = "https://demo.ands.org.au/registry/pids/";
$ENV['gPIDS_IDENTIFIER_SUFFIX'] = 'https://researchdata.ands.org.au';
$eDBCONF['pids']['hostname'] = 'devl.ands.org.au';
$eDBCONF['pids']['username'] = 'pidmaster';
$eDBCONF['pids']['database'] = 'pids';
$eDBCONF['pids']['dbdriver'] = 'postgre';
*/
/*
//=> DOIS MANAGEMENT
// - ANDS-only;
// - allows users to manage and update their ANDS DOIS (Cite My Data)
$ENV['gDOIS_SERVICE_BASE_URI'] = "https://mds.datacite.org/";
$ENV['gDOIS_DATACENTRE_NAME_PREFIX'] = "";
$ENV['gDOIS_DATACENTRE_NAME_MIDDLE'] = "";
$ENV['gDOIS_DATACITE_PASSWORD'] = "";
$ENV['gDOIS_RESPONSE_SUCCESS'] = "OK";
$ENV['gDOIS_DATACENTRE_PREFIXS'] = array( '10.4225/','10.4226/','10.4227/','10.5072/');
$ENV['gDOIS_TEST_APP_ID'] = ""; // ANDS test datacenter app_id
$ENV['gDOIS_TEST_SHARED_SECRET'] = ""; // ands test datacentre shared_secret
$eDBCONF['dois']['database'] = 'dbs_dois';
*/
/*
//=> TWITTER API
// - enables the /apps/twitter/ module to tweet about updates to the registry
$ENV['twitter_consumer_key'] = '';
$ENV['twitter_consumer_secret'] = '';
$ENV['twitter_oauth_access_token'] = '';
$ENV['twitter_oauth_access_secret'] = '';
*/
//
// DOI LINK CHECKER VARIABLES
$ENV['PYTHON_BIN'] = ""; // will have to point to a python 3.3 or later version
// To use the original DOI link checker:
$ENV['DOI_LINK_CHECKER_SCRIPT'] = "<full_path_to_doi_link_checker.py>";
// To use the new link checker provided in Release 14, create a
// suitable linkchecker.ini (see the link checker README) and use the
// following setting:
// $ENV['DOI_LINK_CHECKER_SCRIPT'] = "<full_path_to_new_linkchecker.py> --html_output -i <full_path_to_linkchecker.ini> -m DOI";
//Tracking for Google Analytics and Lucky Orange
$ENV['tracking'] =
array(
'googleGA' => array(
'enabled' => false,
'keys' => array('id' => '')
),
'luckyOrange' => array(
'enabled' => false,
'keys' => array('id' => '')
)
);
// CC-2968 LEGACY OAUTH Configuration; not used
$ENV['oauth_config'] =
array(
// set on "base_url" the relative url that point to HybridAuth Endpoint
'base_url' => $ENV['default_base_url'].'auth/oauth',
"providers" => array (
// openid providers
"OpenID" => array (
"enabled" => false
),
"Yahoo" => array (
"enabled" => false,
"keys" => array ( "id" => "", "secret" => "" ),
),
"Google" => array (
"enabled" => false,
"keys" => array ( "id" => "", "secret" => "" ),
),
"Facebook" => array (
"enabled" => false,
"keys" => array ( "id" => "", "secret" => "" ),
),
"Twitter" => array (
"enabled" => false,
"keys" => array ( "key" => "", "secret" => "" )
),
"LinkedIn" => array (
"enabled" => false,
"keys" => array ( "key" => "", "secret" => "" )
),
)
);