Merge pull request #19691 from kamil-tekiela/Show-hostname

Show hostname on main page
This commit is contained in:
Maurício Meneghini Fauth 2025-05-03 09:50:08 -03:00 committed by GitHub
commit cb123ef8a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -158,6 +158,7 @@ final class HomeController implements InvocableController
$serverCharset = Charsets::getServerCharset($this->dbi, $this->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(),