Show hostname on main page

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2025-05-02 14:44:02 +01:00
parent e1ced0051b
commit 2fa1c4ed2c
2 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,10 @@
{{ t('Server:') }}
{{ database_server.host }}
</li>
<li class="list-group-item">
{{ t('Hostname:') }}
{{ database_server.hostname }}
</li>
<li class="list-group-item">
{{ t('Server type:') }}
{{ database_server.type }}

View File

@ -159,6 +159,7 @@ final class HomeController implements InvocableController
$serverCharset = Charsets::getServerCharset($this->dbi, $config->selectedServer['DisableIS']);
$databaseServer = [
'host' => $hostInfo,
'hostname' => $this->dbi->fetchValue('SELECT @@hostname;'),
'type' => Util::getServerType(),
'connection' => Generator::getServerSSL(),
'version' => $this->dbi->getVersionString() . ' - ' . $this->dbi->getVersionComment(),