chore(admin): allow config avatar public path (#11689)

close #11677
This commit is contained in:
forehalo
2025-04-15 12:54:55 +00:00
parent 3ebac1d39d
commit 681c61a300
2 changed files with 6 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ declare global {
defineModuleConfig('server', {
name: {
desc: 'A recognizable name for the server. Will be shown when connected with AFFiNE Desktop.',
default: 'AFFiNE Cloud',
default: '',
},
externalUrl: {
desc: `Base url of AFFiNE server, used for generating external urls.

View File

@@ -127,6 +127,11 @@ export const KNOWN_CONFIG_GROUPS = [
type: 'JSON',
desc: 'The config passed directly to the storage provider(e.g. aws-sdk)',
},
{
key: 'avatar.publicPath',
type: 'String',
desc: 'The public path prefix for user avatars(e.g. https://my-bucket.s3.amazonaws.com/)',
},
],
} as ConfigGroup<'storages'>,
{