22 lines
719 B
Plaintext
22 lines
719 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
$coulobre = require '/etc/coulobre-phpmyadmin/bridge.php';
|
|
|
|
$cfg['TempDir'] = '/var/lib/coulobre-phpmyadmin/tmp';
|
|
$cfg['blowfish_secret'] = hex2bin(trim(file_get_contents('/etc/coulobre-phpmyadmin/session.key')));
|
|
$cfg['SessionSavePath'] = $coulobre['session_path'];
|
|
$cfg['AllowArbitraryServer'] = false;
|
|
$cfg['Servers'][1] = [
|
|
'auth_type' => 'signon',
|
|
'host' => 'localhost',
|
|
'socket' => '/run/mysqld/mysqld.sock',
|
|
'AllowRoot' => false,
|
|
'SignonSession' => $coulobre['signon_session'],
|
|
'SignonCookieParams' => $coulobre['cookie_params'],
|
|
'SignonURL' => $coulobre['panel_origin'] . '/',
|
|
'LogoutURL' => $coulobre['panel_origin'] . '/',
|
|
];
|
|
unset($coulobre);
|