资助激励功能合并 #8

Closed
qyzh1996 wants to merge 309 commits from qyzh1996/gitea-1120-rc1:develop into develop
First-time contributor

新增功能说明

为开展资助激励平台上线后的效果度量研究,我们在gitea上也增加了一些日志信息。

新增:获取日志列表和下载日志的接口。

新增:在git push操作时,服务器会记录新的commit信息以及分支变化情况。这个记录会保存在access log中,请保证access log是激活的。激活方式需要修改配置文件。可在配置文件的[log]区加入以下两行:

ENABLE_ACCESS_LOG = true
ACCESS_LOG_TEMPLATE = {login: {{.Identity}}, time: {{.Start.Format "2006-01-02 15:04:05 -0700" }}, method: {{.Ctx.Req.Method}}, uri: {{.Ctx.Req.URL.RequestURI}},  proto:{{.Ctx.Req.Proto}}, response_code: {{.ResponseWriter.Status}}, agent: {{.Ctx.Req.UserAgent}}, request_body: } 
## 新增功能说明 为开展资助激励平台上线后的效果度量研究,我们在gitea上也增加了一些日志信息。 新增:获取日志列表和下载日志的接口。 新增:在git push操作时,服务器会记录新的commit信息以及分支变化情况。这个记录会保存在access log中,请保证access log是激活的。激活方式需要修改配置文件。可在配置文件的[log]区加入以下两行: ``` ENABLE_ACCESS_LOG = true ACCESS_LOG_TEMPLATE = {login: {{.Identity}}, time: {{.Start.Format "2006-01-02 15:04:05 -0700" }}, method: {{.Ctx.Req.Method}}, uri: {{.Ctx.Req.URL.RequestURI}}, proto:{{.Ctx.Req.Proto}}, response_code: {{.ResponseWriter.Status}}, agent: {{.Ctx.Req.UserAgent}}, request_body: } ```
qyzh1996 added 2 commits 2020-12-15 15:04:29 +08:00
yystopf closed this pull request 2021-03-01 11:16:16 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitea-1120-rc1#8
No description provided.