mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-06 19:52:24 +03:00
#### PR Dependency Tree * **PR #15883** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Document creation can now recover incomplete registrations without recreating document content. * Document updates can detect revision conflicts, helping prevent changes from overwriting newer edits. * **Improvements** * Document sync and update handling are improved across desktop, Android, and iOS. * Workspace metadata and legacy document pages are handled more consistently during migration and recovery. * Creator and editor details are better preserved when documents are recovered or compacted. * **Configuration** * Removed the experimental document-merge setting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
410 lines
12 KiB
JSON
410 lines
12 KiB
JSON
{
|
|
"metrics": {
|
|
"enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Enable metric and tracing collection"
|
|
}
|
|
},
|
|
"crypto": {
|
|
"privateKey": {
|
|
"type": "String",
|
|
"desc": "Private key for Node signing and encryption plus native runtime identity.",
|
|
"env": "AFFINE_PRIVATE_KEY"
|
|
}
|
|
},
|
|
"throttle": {
|
|
"enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Whether the throttler is enabled."
|
|
},
|
|
"throttlers.default": {
|
|
"type": "Object",
|
|
"desc": "The config for the default throttler."
|
|
},
|
|
"throttlers.strict": {
|
|
"type": "Object",
|
|
"desc": "The config for the strict throttler."
|
|
}
|
|
},
|
|
"auth": {
|
|
"trustedCloudflareHeaders": {
|
|
"type": "Boolean",
|
|
"desc": "Whether request abuse source facts should trust Cloudflare headers from the origin edge."
|
|
},
|
|
"signInRateLimit": {
|
|
"type": "Object",
|
|
"desc": "Limits for sign-in attempts shared through Redis by source IP and email. ttl is measured in milliseconds."
|
|
},
|
|
"passwordRequirements": {
|
|
"type": "Object",
|
|
"desc": "The password strength requirements when set new password."
|
|
},
|
|
"allowSignup": {
|
|
"type": "Boolean",
|
|
"desc": "Allow new registrations."
|
|
},
|
|
"allowSignupForOauth": {
|
|
"type": "Boolean",
|
|
"desc": "Allow new registrations through configured OAuth providers."
|
|
},
|
|
"requireEmailDomainVerification": {
|
|
"type": "Boolean",
|
|
"desc": "Require email domain verification for restricted resources."
|
|
},
|
|
"newAccountActionDelay": {
|
|
"type": "Number",
|
|
"desc": "Minimum account age in seconds for invites and document publishing."
|
|
},
|
|
"session.ttl": {
|
|
"type": "Number",
|
|
"desc": "Application auth expiration in seconds."
|
|
},
|
|
"session.ttr": {
|
|
"type": "Number",
|
|
"desc": "Application auth refresh interval in seconds."
|
|
},
|
|
"token.accessTokenTtl": {
|
|
"type": "Number",
|
|
"desc": "Access JWT expiration in seconds."
|
|
},
|
|
"token.refreshIdleTtl": {
|
|
"type": "Number",
|
|
"desc": "Refresh session inactivity expiration in seconds."
|
|
},
|
|
"token.refreshAbsoluteTtl": {
|
|
"type": "Number",
|
|
"desc": "Refresh session absolute expiration in seconds."
|
|
},
|
|
"token.refreshGracePeriod": {
|
|
"type": "Number",
|
|
"desc": "Refresh rotation concurrency grace period in seconds."
|
|
},
|
|
"token.refreshRetention": {
|
|
"type": "Number",
|
|
"desc": "Expired refresh generation retention in seconds."
|
|
}
|
|
},
|
|
"mailer": {
|
|
"SMTP.name": {
|
|
"type": "String",
|
|
"desc": "Hostname used for SMTP HELO/EHLO (e.g. mail.example.com). Leave empty to use the system hostname.",
|
|
"env": "MAILER_SERVERNAME"
|
|
},
|
|
"SMTP.host": {
|
|
"type": "String",
|
|
"desc": "Host of the email server (e.g. smtp.gmail.com)",
|
|
"env": "MAILER_HOST"
|
|
},
|
|
"SMTP.port": {
|
|
"type": "Number",
|
|
"desc": "Port of the email server (they commonly are 25, 465 or 587)",
|
|
"env": "MAILER_PORT"
|
|
},
|
|
"SMTP.username": {
|
|
"type": "String",
|
|
"desc": "Username used to authenticate the email server",
|
|
"env": "MAILER_USER"
|
|
},
|
|
"SMTP.password": {
|
|
"type": "String",
|
|
"desc": "Password used to authenticate the email server",
|
|
"env": "MAILER_PASSWORD"
|
|
},
|
|
"SMTP.sender": {
|
|
"type": "String",
|
|
"desc": "Sender of all the emails (e.g. \"AFFiNE Self Hosted <noreply@example.com>\")",
|
|
"env": "MAILER_SENDER"
|
|
},
|
|
"SMTP.ignoreTLS": {
|
|
"type": "Boolean",
|
|
"desc": "Whether ignore email server's TLS certificate verification. Enable it for self-signed certificates.",
|
|
"env": "MAILER_IGNORE_TLS"
|
|
},
|
|
"fallbackDomains": {
|
|
"type": "Array",
|
|
"desc": "The emails from these domains are always sent using the fallback SMTP server."
|
|
},
|
|
"deliveryWorker.batchSize": {
|
|
"type": "Number",
|
|
"desc": "Number of mail delivery rows claimed by each worker tick."
|
|
},
|
|
"deliveryWorker.leaseMs": {
|
|
"type": "Number",
|
|
"desc": "Mail delivery worker lease duration in milliseconds."
|
|
},
|
|
"deliveryWorker.retentionDays": {
|
|
"type": "Number",
|
|
"desc": "Days to retain anonymized terminal mail delivery ledger rows."
|
|
},
|
|
"fallbackSMTP.name": {
|
|
"type": "String",
|
|
"desc": "Hostname used for fallback SMTP HELO/EHLO (e.g. mail.example.com). Leave empty to use the system hostname."
|
|
},
|
|
"fallbackSMTP.host": {
|
|
"type": "String",
|
|
"desc": "Host of the email server (e.g. smtp.gmail.com)"
|
|
},
|
|
"fallbackSMTP.port": {
|
|
"type": "Number",
|
|
"desc": "Port of the email server (they commonly are 25, 465 or 587)"
|
|
},
|
|
"fallbackSMTP.username": {
|
|
"type": "String",
|
|
"desc": "Username used to authenticate the email server"
|
|
},
|
|
"fallbackSMTP.password": {
|
|
"type": "String",
|
|
"desc": "Password used to authenticate the email server"
|
|
},
|
|
"fallbackSMTP.sender": {
|
|
"type": "String",
|
|
"desc": "Sender of all the emails (e.g. \"AFFiNE Self Hosted <noreply@example.com>\")"
|
|
},
|
|
"fallbackSMTP.ignoreTLS": {
|
|
"type": "Boolean",
|
|
"desc": "Whether ignore email server's TLS certificate verification. Enable it for self-signed certificates."
|
|
}
|
|
},
|
|
"doc": {
|
|
"history.interval": {
|
|
"type": "Number",
|
|
"desc": "The minimum time interval in milliseconds of creating a new history snapshot when doc get updated."
|
|
}
|
|
},
|
|
"storages": {
|
|
"avatar.publicPath": {
|
|
"type": "String",
|
|
"desc": "The public accessible path prefix for user avatars."
|
|
},
|
|
"avatar.storage": {
|
|
"type": "Object",
|
|
"desc": "The config of storage for user avatars."
|
|
},
|
|
"blob.storage": {
|
|
"type": "Object",
|
|
"desc": "The config of storage for all uploaded blobs(images, videos, etc.)."
|
|
}
|
|
},
|
|
"websocket": {
|
|
"transports": {
|
|
"type": "Array",
|
|
"desc": "The enabled transports for accepting websocket traffics.",
|
|
"link": "https://docs.nestjs.com/websockets/gateways#transports"
|
|
},
|
|
"maxHttpBufferSize": {
|
|
"type": "Number",
|
|
"desc": "How many bytes or characters a message can be, before closing the session (to avoid DoS)."
|
|
}
|
|
},
|
|
"server": {
|
|
"name": {
|
|
"type": "String",
|
|
"desc": "A recognizable name for the server. Will be shown when connected with AFFiNE Desktop."
|
|
},
|
|
"externalUrl": {
|
|
"type": "String",
|
|
"desc": "Base url of AFFiNE server, used for generating external urls.\nDefault to be `[server.protocol]://[server.host][:server.port]` if not specified.\n ",
|
|
"env": "AFFINE_SERVER_EXTERNAL_URL"
|
|
},
|
|
"https": {
|
|
"type": "Boolean",
|
|
"desc": "Whether the server is hosted on a ssl enabled domain (https://).",
|
|
"env": "AFFINE_SERVER_HTTPS"
|
|
},
|
|
"host": {
|
|
"type": "String",
|
|
"desc": "Where the server get deployed(FQDN).",
|
|
"env": "AFFINE_SERVER_HOST"
|
|
},
|
|
"hosts": {
|
|
"type": "Array",
|
|
"desc": "Multiple hosts the server will accept requests from."
|
|
},
|
|
"listenAddr": {
|
|
"type": "String",
|
|
"desc": "The address to listen on (e.g., 0.0.0.0 for IPv4, :: for IPv6).",
|
|
"env": "LISTEN_ADDR"
|
|
},
|
|
"port": {
|
|
"type": "Number",
|
|
"desc": "Which port the server will listen on.",
|
|
"env": "AFFINE_SERVER_PORT"
|
|
},
|
|
"path": {
|
|
"type": "String",
|
|
"desc": "Subpath where the server get deployed if there is one.(e.g. /affine)",
|
|
"env": "AFFINE_SERVER_SUB_PATH"
|
|
}
|
|
},
|
|
"flags": {
|
|
"allowGuestDemoWorkspace": {
|
|
"type": "Boolean",
|
|
"desc": "Whether allow guest users to create demo workspaces."
|
|
}
|
|
},
|
|
"telemetry": {
|
|
"allowedOrigin": {
|
|
"type": "Array",
|
|
"desc": "Allowed origins for telemetry collection."
|
|
},
|
|
"ga4.measurementId": {
|
|
"type": "String",
|
|
"desc": "GA4 Measurement ID for Measurement Protocol.",
|
|
"env": "GA4_MEASUREMENT_ID"
|
|
},
|
|
"ga4.apiSecret": {
|
|
"type": "String",
|
|
"desc": "GA4 API secret for Measurement Protocol.",
|
|
"env": "GA4_API_SECRET"
|
|
},
|
|
"dedupe.ttlHours": {
|
|
"type": "Number",
|
|
"desc": "Telemetry dedupe TTL in hours."
|
|
},
|
|
"dedupe.maxEntries": {
|
|
"type": "Number",
|
|
"desc": "Telemetry dedupe max entries."
|
|
},
|
|
"batch.maxEvents": {
|
|
"type": "Number",
|
|
"desc": "Max events per telemetry batch."
|
|
}
|
|
},
|
|
"client": {
|
|
"versionControl.enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Whether check version of client before accessing the server."
|
|
},
|
|
"versionControl.requiredVersion": {
|
|
"type": "String",
|
|
"desc": "Allowed version range of the app that allowed to access the server. Requires 'client/versionControl.enabled' to be true to take effect."
|
|
}
|
|
},
|
|
"calendar": {
|
|
"google": {
|
|
"type": "Object",
|
|
"desc": "Google Calendar integration config",
|
|
"link": "https://developers.google.com/calendar/api/guides/push"
|
|
},
|
|
"caldav": {
|
|
"type": "Object",
|
|
"desc": "CalDAV integration config"
|
|
}
|
|
},
|
|
"captcha": {
|
|
"enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Check captcha challenge when user authenticating the app."
|
|
},
|
|
"config": {
|
|
"type": "Object",
|
|
"desc": "The config for the captcha plugin."
|
|
}
|
|
},
|
|
"copilot": {
|
|
"unsplash": {
|
|
"type": "Object",
|
|
"desc": "The config for the unsplash key."
|
|
},
|
|
"exa": {
|
|
"type": "Object",
|
|
"desc": "The config for the exa web search key."
|
|
},
|
|
"enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Enable AI features. Workspace owners configure provider keys in Workspace Settings → Integrations → AI BYOK."
|
|
},
|
|
"byok.enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Allow workspace owners and admins to configure AI provider keys through AI BYOK."
|
|
},
|
|
"byok.allowedProviders": {
|
|
"type": "Array",
|
|
"desc": "AI providers that workspace owners and admins may add through AI BYOK."
|
|
},
|
|
"byok.allowCustomEndpoint": {
|
|
"type": "Boolean",
|
|
"desc": "Allow AI BYOK keys to use a custom provider endpoint."
|
|
},
|
|
"byok.allowPrivateEndpoint": {
|
|
"type": "Boolean",
|
|
"desc": "Whether workspace BYOK custom endpoints may resolve to private network targets. Enabling this allows workspace owners and admins to send provider probe requests to the private network."
|
|
},
|
|
"storage": {
|
|
"type": "Object",
|
|
"desc": "The config for the storage provider."
|
|
}
|
|
},
|
|
"indexer": {
|
|
"enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Enable the indexer."
|
|
},
|
|
"provider.type": {
|
|
"type": "String",
|
|
"desc": "Search provider type."
|
|
},
|
|
"provider.endpoint": {
|
|
"type": "String",
|
|
"desc": "Remote search provider endpoint."
|
|
},
|
|
"provider.apiKey": {
|
|
"type": "String",
|
|
"desc": "Remote search provider API key."
|
|
},
|
|
"provider.username": {
|
|
"type": "String",
|
|
"desc": "Remote search provider username."
|
|
},
|
|
"provider.password": {
|
|
"type": "String",
|
|
"desc": "Remote search provider password."
|
|
}
|
|
},
|
|
"oauth": {
|
|
"providers.google": {
|
|
"type": "Object",
|
|
"desc": "Google OAuth provider config",
|
|
"link": "https://developers.google.com/identity/protocols/oauth2/web-server"
|
|
},
|
|
"providers.github": {
|
|
"type": "Object",
|
|
"desc": "GitHub OAuth provider config",
|
|
"link": "https://docs.github.com/en/apps/oauth-apps"
|
|
},
|
|
"providers.oidc": {
|
|
"type": "Object",
|
|
"desc": "OIDC OAuth provider config. Private network access requires allowPrivateNetwork: true",
|
|
"link": "https://openid.net/specs/openid-connect-core-1_0.html"
|
|
},
|
|
"providers.apple": {
|
|
"type": "Object",
|
|
"desc": "Apple OAuth provider config",
|
|
"link": "https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/implementing_sign_in_with_apple_in_your_app"
|
|
}
|
|
},
|
|
"payment": {
|
|
"showLifetimePrice": {
|
|
"type": "Boolean",
|
|
"desc": "Whether enable lifetime price and allow user to pay for it."
|
|
},
|
|
"enabled": {
|
|
"type": "Boolean",
|
|
"desc": "Whether to enable payment integration."
|
|
},
|
|
"stripe": {
|
|
"type": "Object",
|
|
"desc": "Stripe SDK options and credentials."
|
|
},
|
|
"revenuecat": {
|
|
"type": "Object",
|
|
"desc": "RevenueCat integration configuration."
|
|
}
|
|
},
|
|
"worker": {
|
|
"allowedOrigin": {
|
|
"type": "Array",
|
|
"desc": "Allowed origin"
|
|
}
|
|
}
|
|
} |