-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
27 lines (19 loc) · 1.19 KB
/
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
25
26
27
<?php
// Database Details
$config['templates']['dir'] = getEnvOrDefault('TEMPLATE_DIR', __DIR__ . '/templates');
$config['templates']['theme'] = getEnvOrDefault('TEMPLATE_THEME', 'default');
$config['templates']['cache'] = getEnvOrDefault('TEMPLATE_CACHE', __DIR__ . '/templates_c');
$config['api'] = getEnvOrDefault('API_URL', 'https://api.mydnshost.co.uk/');
$config['api_public'] = getEnvOrDefault('API_PUBLICURL', $config['api']);
$config['sitename'] = getEnvOrDefault('SITE_NAME', 'MyDNSHost');
// Config for redis, used for storing sessions.
$config['redis'] = getEnvOrDefault('REDIS_HOST', '');
$config['redisPort'] = getEnvOrDefault('REDIS_PORT', 6379);
$config['redisSessionPrefix'] = getEnvOrDefault('REDIS_SESSION_PREFIX', 'MyDNSHost-Web-Session');
$config['securecookies'] = getEnvOrDefault('SECURE_COOKIES', false);
$config['recaptcha']['site'] = getEnvOrDefault('RECAPTCHA_SITE', '');
$config['recaptcha']['secret'] = getEnvOrDefault('RECAPTCHA_SECRET', '');
$config['register']['termsText'] = getEnvOrDefault('TERMS_TEXT', 'I agree to the terms of service.');
if (file_exists(dirname(__FILE__) . '/config.local.php')) {
include(dirname(__FILE__) . '/config.local.php');
}