-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
24 lines (20 loc) · 1019 Bytes
/
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
<?php
define('IRMA_SERVER_URL', getenv('IRMA_SERVER_URL') ?: 'http://localhost:8088');
define('API_TOKEN', getenv('API_TOKEN') ?: '');
define('DEMO', false);
define('JWT_ENABLED', getenv('JWT_ENABLED')?: false);
define('DESIRED_ATTRIBUTE_TO_DISCLOSE', getenv('DESIRED_ATTRIBUTE_TO_DISCLOSE') ?: '');
if (DEMO) {
define('SCHEME', 'irma-demo');
define('BASE_URL', 'http://localhost:8080');
define('IRMATUBE_NEXT_SESSION_URL', BASE_URL . '/get_session_request.php');
define('IRMATUBE_CREDENTIAL', 'irma-demo.IRMATube.member');
} else {
define('SCHEME',getenv('SCHEME') ?: 'pbdf');
define('BASE_URL', getenv('BASE_URL') ?: 'https://privacybydesign.foundation');
define('IRMATUBE_NEXT_SESSION_URL',getenv('IRMATUBE_NEXT_SESSION_URL') ?: BASE_URL . '/get_session_request.php');
define('IRMATUBE_CREDENTIAL', getenv('IRMATUBE_CREDENTIAL') ?: 'pbdf.pbdf.irmatube');
}
if (JWT_ENABLED) {
define('IRMA_SERVER_PUBLICKEY',getenv('IRMA_SERVER_PUBLICKEY') ?: __DIR__ . '/../data/pk.pem');
}