mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-18 10:46:23 +00:00
Make autologin configurable
This commit is contained in:
parent
233c906d57
commit
7a75f04952
@ -30,10 +30,14 @@ $i = 0;
|
||||
* First server
|
||||
*/
|
||||
$i++;
|
||||
/* Authentication type */
|
||||
$cfg['Servers'][$i]['auth_type'] = 'config';
|
||||
$cfg['Servers'][$i]['user'] = 'root';
|
||||
$cfg['Servers'][$i]['password'] = getenv('MYSQL_ROOT_PASSWORD');
|
||||
if (getenv('DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN') == 1) {
|
||||
/* Authentication type */
|
||||
$cfg['Servers'][$i]['auth_type'] = 'config';
|
||||
$cfg['Servers'][$i]['user'] = 'root';
|
||||
$cfg['Servers'][$i]['password'] = getenv('MYSQL_ROOT_PASSWORD');
|
||||
} else {
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
}
|
||||
/* Server parameters */
|
||||
$cfg['Servers'][$i]['host'] = 'mysql';
|
||||
$cfg['Servers'][$i]['compress'] = false;
|
||||
|
11
env-example
11
env-example
@ -128,7 +128,6 @@ TIMEZONE=Europe/Berlin
|
||||
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
###
|
||||
### INTRANET SETTINGS
|
||||
@ -203,6 +202,16 @@ DEVILBOX_UI_PASSWORD=password
|
||||
DEVILBOX_UI_ENABLE=1
|
||||
|
||||
|
||||
###
|
||||
### Automatically be logged in into phpMyAdmin
|
||||
###
|
||||
### Example:
|
||||
### DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1
|
||||
### DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=0
|
||||
###
|
||||
DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user