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
changes/17/860017/1
Clark Boylan 2 months ago
parent bb0dd71c59
commit fbb55cd9ec
  1. 3
      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

Loading…
Cancel
Save