chore: log full source hostname

This commit is contained in:
Marek Miklewicz
2026-06-30 21:35:12 +02:00
parent b6a9180eae
commit 311190a7cd
8 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ return static function (): void {
$auditBase = [
'request_id' => bin2hex(random_bytes(8)),
'source_host' => $ctx->sourceHost(),
'server_name' => $ctx->serverName(),
'server_name' => $ctx->auditServerName(),
'target_host' => $settings->targetBaseUrl(),
'username' => $ctx->username(),
'ttl' => $settings->loginKeyTtl(),
+5
View File
@@ -57,6 +57,11 @@ final class DirectAdminContext
return $this->serverName;
}
public function auditServerName(): string
{
return $this->sourceHost;
}
public function method(): string
{
return $this->method;
-1
View File
@@ -57,7 +57,6 @@ final class Settings
{
return [
'DEFAULT_ENABLE' => 'true',
'MAIL_LOGIN_TARGET_NAME' => 'mx1',
'MAIL_LOGIN_TARGET_BASE_URL' => 'https://mx1.mojserwer.pl:2222',
'MAIL_LOGIN_REDIRECT_URL' => '/',
'LOGIN_KEY_TTL' => '14400',