Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 18f92a5

Browse files
committed
[proxy]ES日志策略支持用户名和密码认证
1 parent 1067cdd commit 18f92a5

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

src/main/web/views/@default/proxy/log/policies/add.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,20 @@
104104
<span class="ui label tiny">年月日:${date}</span></p>
105105
</td>
106106
</tr>
107+
<tr>
108+
<td>认证用户名</td>
109+
<td>
110+
<input type="text" name="esUsername"/>
111+
<p class="comment">配置了认证后才需要填写。</p>
112+
</td>
113+
</tr>
114+
<tr>
115+
<td>认证密码</td>
116+
<td>
117+
<input type="text" name="esPassword"/>
118+
<p class="comment">配置了认证后才需要填写。</p>
119+
</td>
120+
</tr>
107121
</tbody>
108122

109123
<!-- MySQL -->

src/main/web/views/@default/proxy/log/policies/policy.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ <h3>策略详情 <a :href="'/proxy/log/policies/update?policyId=' + policy.id">
6060
<span v-html="formatVariables(policy.options.mappingType)"></span>
6161
</td>
6262
</tr>
63+
<tr>
64+
<td class="color-border">认证用户名</td>
65+
<td>
66+
<span v-if="policy.options.username != null && policy.options.username.length > 0">{{policy.options.username}}</span>
67+
<span v-if="policy.options.username == null || policy.options.username.length == 0" class="disabled">没有设置。</span>
68+
</td>
69+
</tr>
70+
<tr>
71+
<td class="color-border">认证密码</td>
72+
<td>
73+
<span v-if="policy.options.password != null && policy.options.password.length > 0">{{policy.options.password}}</span>
74+
<span v-if="policy.options.password == null || policy.options.password.length == 0" class="disabled">没有设置。</span>
75+
</td>
76+
</tr>
6377
</tbody>
6478

6579
<!-- MySQL -->

src/main/web/views/@default/proxy/log/policies/update.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@
105105
<span class="ui label tiny">年月日:${date}</span></p>
106106
</td>
107107
</tr>
108+
<tr>
109+
<td>认证用户名</td>
110+
<td>
111+
<input type="text" name="esUsername" v-model="policy.options.username"/>
112+
<p class="comment">配置了认证后才需要填写。</p>
113+
</td>
114+
</tr>
115+
<tr>
116+
<td>认证密码</td>
117+
<td>
118+
<input type="text" name="esPassword" v-model="policy.options.password"/>
119+
<p class="comment">配置了认证后才需要填写。</p>
120+
</td>
121+
</tr>
108122
</tbody>
109123

110124
<!-- MySQL -->

0 commit comments

Comments
 (0)