mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-18 23:10:25 +08:00
集群服务设置--访问日志中可以设置是否只记录通用Header
This commit is contained in:
@@ -78,6 +78,8 @@ func (this *IndexAction) RunPost(params struct {
|
||||
HttpAllAllowNodeIP bool
|
||||
HttpAllDefaultDomain string
|
||||
|
||||
HttpAccessLogCommonRequestHeadersOnly bool
|
||||
|
||||
LogRecordServerError bool
|
||||
|
||||
Must *actions.Must
|
||||
@@ -123,6 +125,8 @@ func (this *IndexAction) RunPost(params struct {
|
||||
config.HTTPAll.AllowNodeIP = params.HttpAllAllowNodeIP
|
||||
config.HTTPAll.DefaultDomain = params.HttpAllDefaultDomain
|
||||
|
||||
config.HTTPAccessLog.CommonRequestHeadersOnly = params.HttpAccessLogCommonRequestHeadersOnly
|
||||
|
||||
config.Log.RecordServerError = params.LogRecordServerError
|
||||
|
||||
err = config.Init()
|
||||
|
||||
@@ -47,7 +47,18 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4>日志</h4>
|
||||
<h4>访问日志</h4>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">只记录通用请求<br/>Header</td>
|
||||
<td>
|
||||
<checkbox name="httpAccessLogCommonRequestHeadersOnly" v-model="config.httpAccessLog.commonRequestHeadersOnly"></checkbox>
|
||||
<p class="comment">选中后,表示访问日志中只记录通用的HTTP请求Header(比如<code-label>User-Agent</code-label>),其他自定义或非标准的(比如<code-label>Test-Header</code-label>)将不记录。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4>运行日志</h4>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">记录服务错误</td>
|
||||
|
||||
Reference in New Issue
Block a user