forked from OSIRIS-Solutions/osiris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCONFIG.default.php
More file actions
50 lines (37 loc) · 1.45 KB
/
CONFIG.default.php
File metadata and controls
50 lines (37 loc) · 1.45 KB
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
<?php
// define relative path to your root folder
define('ROOTPATH', '');
// define ADMIN user name
define('ADMIN', 'juk20');
// possible values are 'AUTH', 'LDAP' or 'OAUTH'
define('USER_MANAGEMENT', 'AUTH');
// LDAP user management:
// define("LDAP_IP", "100.10.100.0");
// define("LDAP_PORT", 389);
// define("LDAP_USER", "osiris");
// define("LDAP_DOMAIN", "@domain.local");
// define("LDAP_PASSWORD", "ldap_password");
// define("LDAP_BASEDN", "OU=Users,OU=DSMZ,DC=dsmz,DC=local");
// OAUTH user management:
// define('OAUTH', 'Microsoft');
// define('CLIENT_ID', 'DEINE_CLIENT_ID');
// define('CLIENT_SECRET', 'DEIN_CLIENT_SECRET');
// define('REDIRECT_URI', 'http://localhost/login-callback.php');
// define('AUTHORITY', 'https://login.microsoftonline.com/common');
// define('SCOPES', 'openid profile email User.Read');
// define DB connection
define("DB_NAME", "osiris");
// check if OSIRIS_DB_HOST (Docker) is defined, else opt out to localhost
$host_db = getenv('OSIRIS_DB_HOST') ?? "localhost";
if (empty($host_db)) {
$host_db = "localhost";
}
define("DB_HOST", $host_db);
define("DB_STRING", "mongodb://" . DB_HOST . ":27017/" . DB_NAME . "?retryWrites=true&w=majority");
// define API keys
define("WOS_STARTER_KEY", "wos starter key");
define("WOS_JOURNAL_INFO", 2021);
// not needed right now, but planned in the future
define("ORCID_APP_ID", null);
define("ORCID_SECRET_KEY", null);
define('LIVE', true);