Initial Upload
This commit is contained in:
47
docker/tmp/settings.php-template
Normal file
47
docker/tmp/settings.php-template
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Xibo - Digital Signage - http://www.xibo.org.uk
|
||||
*
|
||||
* This file is part of Xibo - and is automatically generated by the installer
|
||||
*
|
||||
* You should not need to edit this file, unless your SQL connection details have changed.
|
||||
*/
|
||||
|
||||
defined('XIBO') or die(__("Sorry, you are not allowed to directly access this page.") . "<br />" . __("Please press the back button in your browser."));
|
||||
|
||||
global $dbhost;
|
||||
global $dbuser;
|
||||
global $dbpass;
|
||||
global $dbname;
|
||||
global $dbssl;
|
||||
global $dbsslverify;
|
||||
|
||||
$dbhost = $_SERVER['MYSQL_HOST'] . ':' . $_SERVER['MYSQL_PORT'];
|
||||
$dbuser = $_SERVER['MYSQL_USER'];
|
||||
$dbpass = $_SERVER['MYSQL_PASSWORD'];
|
||||
$dbname = $_SERVER['MYSQL_DATABASE'];
|
||||
$dbssl = $_SERVER['MYSQL_ATTR_SSL_CA'];
|
||||
$dbsslverify = $_SERVER['MYSQL_ATTR_SSL_VERIFY_SERVER_CERT'];
|
||||
|
||||
if (!defined('SECRET_KEY')) {
|
||||
define('SECRET_KEY','');
|
||||
}
|
||||
|
||||
if (array_key_exists('CMS_USE_MEMCACHED', $_SERVER)
|
||||
&& ($_SERVER['CMS_USE_MEMCACHED'] === true || $_SERVER['CMS_USE_MEMCACHED'] === 'true')
|
||||
) {
|
||||
global $cacheDrivers;
|
||||
$cacheDrivers = [
|
||||
new Stash\Driver\Memcache([
|
||||
'servers' => [$_SERVER['MEMCACHED_HOST'], $_SERVER['MEMCACHED_PORT']],
|
||||
'CONNECT_TIMEOUT' => 10,
|
||||
])
|
||||
];
|
||||
}
|
||||
|
||||
if (file_exists('/var/www/cms/custom/settings-custom.php')) {
|
||||
include('/var/www/cms/custom/settings-custom.php');
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user