excape golang templates
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-02-15 22:40:59 +01:00
parent 9dc681fd1a
commit 682c096764
2 changed files with 3 additions and 1 deletions

View File

@ -219,7 +219,7 @@ gitea_mirror_min_interval: 10h
gitea_mail_service_enabled: False
gitea_mail_service_from: '"System" <systemmail@example.com>'
gitea_no_reply_address: noreply.example.org
gitea_no_reply_address: "noreply@example.org"
# @var gitea_mail_subject_prefix:default: $ "_unset_"
# @var gitea_mail_subject_prefix:description: Prefix displayed before subject in mail.

View File

@ -206,7 +206,9 @@ MACARON = file
ROUTER_LOG_LEVEL = Info
ROUTER = file
ENABLE_ACCESS_LOG = true
{% raw %}
ACCESS_LOG_TEMPLATE = {{.Ctx.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 %}
ACCESS = file
LEVEL = {{ gitea_log_level }}
STACKTRACE_LEVEL = None