From 45feb7621da3d9694ae63fe8092e620a5dec0c50 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 3 Feb 2021 12:42:39 -0800 Subject: [PATCH] Add remote port info to gitea apache access logs Because the bulk of this traffic originates with our load balancer we need to use port info to differentiate between actual source clients in the load balancer logs. That info is currently missing so add it in. Change-Id: I737e6373c09669f0321b656ecd4b137b94be38a4 --- playbooks/roles/gitea/templates/gitea.vhost.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/gitea/templates/gitea.vhost.j2 b/playbooks/roles/gitea/templates/gitea.vhost.j2 index 54c26a696c..d65b10e654 100644 --- a/playbooks/roles/gitea/templates/gitea.vhost.j2 +++ b/playbooks/roles/gitea/templates/gitea.vhost.j2 @@ -10,7 +10,8 @@ Listen 3081 LogLevel warn - CustomLog ${APACHE_LOG_DIR}/gitea-ssl-access.log combined + LogFormat "%h:%{remote}p %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combinedport + CustomLog ${APACHE_LOG_DIR}/gitea-ssl-access.log combinedport SSLEngine on SSLProtocol All -SSLv2 -SSLv3