-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.php
More file actions
59 lines (49 loc) · 1.98 KB
/
Copy pathconfig.sample.php
File metadata and controls
59 lines (49 loc) · 1.98 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
51
52
53
54
55
56
57
58
59
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/src');
require __DIR__ . '/vendor/autoload.php';
// MySQL connection info
define('MYSQL_USER', 'myuser');
define('MYSQL_PASS', 'mypass');
define('MYSQL_DB', 'goURL');
define('MYSQL_HOST', 'localhost');
// Set allowed domains for CORS
GoRouter::$corsAllowedDomains = array('unl.edu');
$useTheme = 'unl';
if ($useTheme === 'dcf') {
// dcf
GoController::$appName = 'Short URL';
GoController::$institution = 'University of DCF';
GoController::$themePath = __DIR__ . '/src/Themes/dcf';
GoController::$template = UNL\Templates\Theme::TYPE_APP;
GoController::$customThemeTemplate = 'app.tpl.php';
GoController::$templateVersion = UNL\Templates\Theme::CUSTOM_VERSION;
} else {
// UNL
GoController::$appName = 'Go URL';
GoController::$institution = 'University of Nebraska–Lincoln';
GoController::$themePath = __DIR__ . '/src/Themes/unl';
GoController::$template = UNL\Templates\Theme::TYPE_APP_LOCAL;
GoController::$templateVersion = UNL\Templates\Templates::VERSION_5_3;
}
// Define Auth
// Path to system trusted certificates
define('CAS_CA_FILE', '/etc/pki/tls/cert.pem');
$auth = new \UNL\Templates\Auth\AuthCAS('2.0', 'shib.unl.edu', 443, '/idp/profile/cas', CAS_CA_FILE);
// Set QR icon for center of QR code (expects 235x235 png), defaults to blank icon
$qrIconPng = __DIR__ . '/data/qr/icons/unl_qr_235.png';
// allow urls that begin with these strings
$allowed_protocols = array('http://', 'https://');
//Use the https protocol for short URLS. If false or undefined, http:// will be used instead.
define('HTTPS_SHORT_URLS', true);
// allow urls from these domains for non-authenticated users.
$allowed_domains = array(
'unl.edu',
'nebraska.edu',
'huskers.com',
'huskeralum.org',
'buros.org',
);
// uncomment the line below to skip the protocol check
// $allowed_procotols = array();
// uncomment the line below to skip the domain check
// $allowed_domains = array();