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
This commit is contained in:
Clark Boylan 2022-09-30 11:28:34 -07:00
parent bb0dd71c59
commit fbb55cd9ec

View File

@ -64,9 +64,6 @@ ROOT_PATH = /logs
LEVEL = Info LEVEL = Info
STACKTRACE_LEVEL = Error STACKTRACE_LEVEL = Error
ENABLE_ACCESS_LOG = true 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] [security]
INSTALL_LOCK = true INSTALL_LOCK = true