From fbb55cd9ecc4c6538f4e872482965b061c13e1c1 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 30 Sep 2022 11:28:34 -0700 Subject: [PATCH] Switch back to default gitea access log format Switch because our overridden format does not seem to do what we expect anymore. It always shows the port as :0 which is problematic as it doesn't include necessary info. The update was made to accomodate macaron which gitea has apparently moved away from (in favor of go-chi) it is possible that the default format does what we want now. Change-Id: If9bcf5cdb11911a46a8fd728346f2f35ffa5e8ba --- playbooks/roles/gitea/templates/app.ini.j2 | 3 --- 1 file changed, 3 deletions(-) diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index bbae8350ef..5b4c468985 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -64,9 +64,6 @@ ROOT_PATH = /logs LEVEL = Info STACKTRACE_LEVEL = Error ENABLE_ACCESS_LOG = true -{% raw %} -ACCESS_LOG_TEMPLATE = {{.Ctx.Req.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}" -{% endraw %} [security] INSTALL_LOCK = true