security: 隐藏 MongoDB 连接串与库名,health 不再返回 uri/db 并对错误脱敏
This commit is contained in:
+1
-2
@@ -153,8 +153,7 @@ function previewLink(item: TorrentView) {
|
||||
</section>
|
||||
|
||||
<div v-if="health && !health.mongo.ok" class="note warn mt rise rise-2">
|
||||
MongoDB 未连接,搜索记录与种子缓存不会被保存(其余功能可用)。在 .env 配置正确的 MONGODB_URI(云端实例请填真实密码)后刷新即可:
|
||||
<span class="mono">{{ health.mongo.uri }}</span>
|
||||
MongoDB 未连接,搜索记录与种子缓存不会被保存(其余功能可用)。在 .env 配置正确的 MONGODB_URI 后刷新即可。
|
||||
</div>
|
||||
|
||||
<div class="tabs rise rise-2">
|
||||
|
||||
@@ -321,7 +321,6 @@ onMounted(load)
|
||||
<dt>MongoDB</dt>
|
||||
<dd>
|
||||
<span :class="health?.mongo.ok ? 'ok' : 'err'">{{ health?.mongo.ok ? '已连接' : '未连接' }}</span>
|
||||
<span class="mono small dim"> · {{ health?.mongo.uri }} / {{ health?.mongo.db }}</span>
|
||||
<div v-if="health?.mongo.error" class="small err mono break">{{ health.mongo.error }}</div>
|
||||
</dd>
|
||||
<dt>磁力解析</dt>
|
||||
|
||||
Reference in New Issue
Block a user