Files
phpmyadmin/templates/configmap.yaml

45 lines
1.3 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "phpmyadmin-nginx.fullname" . }}
labels:
{{- include "phpmyadmin-nginx.labels" . | nindent 4 }}
data:
config.inc.php: |
<?php
/* phpMyAdmin configuration */
$cfg['blowfish_secret'] = getenv('PMA_BLOWFISH_SECRET') ?: '';
/* Server configuration */
$i = 0;
$i++;
$cfg['Servers'][$i]['host'] = getenv('PMA_HOST');
$cfg['Servers'][$i]['port'] = getenv('PMA_PORT');
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Upload/save/import directories */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/* Session settings */
$cfg['SessionSavePath'] = '/sessions';
/* Security settings */
$cfg['CheckConfigurationPermissions'] = true;
$cfg['AllowArbitraryServer'] = (bool)getenv('PMA_ARBITRARY');
/* Performance settings */
$cfg['ExecTimeLimit'] = (int)getenv('MAX_EXECUTION_TIME');
/* UI settings */
$cfg['NavigationTreeEnableGrouping'] = true;
$cfg['NavigationTreeDbSeparator'] = '_';
$cfg['NavigationTreeTableSeparator'] = '__';
/* Other settings */
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['VersionCheck'] = false;