feat(discovery): more work on discovery plus a few fixes
This commit is contained in:
@@ -168,6 +168,11 @@
|
||||
"$ref": "#/$defs/proxy",
|
||||
"default": {}
|
||||
},
|
||||
"discovery": {
|
||||
"description": "Guild discovery listing configuration.",
|
||||
"$ref": "#/$defs/discovery",
|
||||
"default": {}
|
||||
},
|
||||
"attachment_decay_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to automatically delete old attachments.",
|
||||
@@ -570,6 +575,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"discovery": {
|
||||
"type": "object",
|
||||
"description": "Guild discovery listing configuration.",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Whether guild discovery is enabled on this instance.",
|
||||
"default": true
|
||||
},
|
||||
"min_member_count": {
|
||||
"type": "number",
|
||||
"description": "Minimum number of members a guild needs before it can apply for discovery listing.",
|
||||
"default": 50
|
||||
}
|
||||
}
|
||||
},
|
||||
"domain": {
|
||||
"type": "object",
|
||||
"description": "Configuration for domains and ports used to construct public URLs.",
|
||||
|
||||
19
packages/config/src/schema/defs/discovery.json
Normal file
19
packages/config/src/schema/defs/discovery.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"discovery": {
|
||||
"type": "object",
|
||||
"description": "Guild discovery listing configuration.",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Whether guild discovery is enabled on this instance.",
|
||||
"default": true
|
||||
},
|
||||
"min_member_count": {
|
||||
"type": "number",
|
||||
"description": "Minimum number of members a guild needs before it can apply for discovery listing.",
|
||||
"default": 50
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -132,6 +132,11 @@
|
||||
"$ref": "#/$defs/proxy",
|
||||
"default": {}
|
||||
},
|
||||
"discovery": {
|
||||
"description": "Guild discovery listing configuration.",
|
||||
"$ref": "#/$defs/discovery",
|
||||
"default": {}
|
||||
},
|
||||
"attachment_decay_enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to automatically delete old attachments.",
|
||||
|
||||
Reference in New Issue
Block a user