mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-30 13:20:45 +08:00
fix(server): improve self hosted usability (#15510)
fix #15505 fix #15502 fix #15496 fix #15491 #### PR Dependency Tree * **PR #15510** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added configurable delays for invitations, invite links, and document publishing by newly created accounts. - Added workspace action checks that explain blocked actions and retry timing. - BYOK setup now verifies model capabilities and saves only validated options. - **Bug Fixes** - Improved BYOK probing for chat, structured responses, tool calls, embeddings, reranking, and image generation. - Preserved probe request order and strengthened response validation. - Authentication configuration changes now reload correctly. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -87,9 +87,9 @@
|
||||
"type": "Boolean",
|
||||
"desc": "Whether require email verification before accessing restricted resources(not implemented)."
|
||||
},
|
||||
"newAccountShareActionDelay": {
|
||||
"newAccountActionDelay": {
|
||||
"type": "Number",
|
||||
"desc": "Minimum account age in seconds before new accounts can invite members or create share links."
|
||||
"desc": "Minimum account age in seconds before new accounts can invite members, create invite links, or publish documents. Set to 0 to disable."
|
||||
},
|
||||
"trustedCloudflareHeaders": {
|
||||
"type": "Boolean",
|
||||
|
||||
@@ -58,9 +58,9 @@ export const KNOWN_CONFIG_GROUPS = [
|
||||
'allowSignup',
|
||||
'allowSignupForOauth',
|
||||
{
|
||||
key: 'newAccountShareActionDelay',
|
||||
key: 'newAccountActionDelay',
|
||||
type: 'Number',
|
||||
desc: 'Minimum account age in seconds before new accounts can invite members or create share links.',
|
||||
desc: 'Minimum account age in seconds before accounts can invite members, create invite links, or publish documents. Set to 0 to disable.',
|
||||
},
|
||||
// nested json object
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user