移除基础配置中多余的通行密钥站点字段并补齐测试
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-07 00:29:50 +08:00
1 parent feadfe98b3
commit 636a23a78a
2 files changed
+6 -18

No files matched your search

@@ -105,17 +105,6 @@ const baseGroups = [
show: config => config.http?.tlsMode !== 'proxy' && !!config.http?.httpsEnabled,
hint: '默认使用 443;需要避开端口占用时可手动修改。'
})
]),
group('security', '通行密钥站点信息', '外部邮箱与通行密钥服务默认可用,由用户在安全设置中自行选择。留空时使用当前站点的安全默认值;密码算法和加密密钥由系统维护。', [
field('security.webAuthnRpId', '通行密钥站点域名', 'text', {
placeholder: '默认使用网页访问域名',
hint: '已绑定通行密钥后不要随意更换域名,否则原密钥可能无法使用。'
}),
field('security.webAuthnRpDisplayName', '通行密钥显示名称', 'text', { placeholder: 'Smail' }),
field('security.webAuthnRpOrigins', '通行密钥允许的来源', 'list', {
placeholder: 'https://mail.example.com',
hint: '每项填写不含路径的完整 HTTPS 来源;反代使用非标准外部端口时,请显式填写端口。'
})
])
]