diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 25f3014a57..4a4bb59f54 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -52,6 +52,9 @@ PATH = /data/gitea/attachments ROOT_PATH = /logs LEVEL = Info 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