fix(config): 🐛 Update JSON schema for config

This commit is contained in:
Jesse Wierzbinski 2025-02-15 02:48:39 +01:00
parent 54fd81f076
commit 045b7d6083
No known key found for this signature in database

View file

@ -130,19 +130,9 @@
"database": { "database": {
"type": "integer", "type": "integer",
"default": 1 "default": 1
},
"enabled": {
"type": "boolean",
"default": false
} }
}, },
"required": [ "required": ["host", "port", "password", "database"],
"host",
"port",
"password",
"database",
"enabled"
],
"additionalProperties": false, "additionalProperties": false,
"description": "A Redis database used for caching SQL queries. Optional." "description": "A Redis database used for caching SQL queries. Optional."
} }
@ -189,7 +179,8 @@
"properties": { "properties": {
"allow": { "allow": {
"type": "boolean", "type": "boolean",
"default": true "default": true,
"description": "Can users sign up freely?"
}, },
"require_approval": { "require_approval": {
"type": "boolean", "type": "boolean",
@ -340,7 +331,8 @@
"type": "object", "type": "object",
"properties": { "properties": {
"server": { "server": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string",
"minLength": 1
}, },
"port": { "port": {
"$ref": "#/properties/postgres/properties/port", "$ref": "#/properties/postgres/properties/port",
@ -1863,7 +1855,7 @@
"disallowed_domains": { "disallowed_domains": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "$ref": "#/properties/http/properties/banned_user_agents/items"
}, },
"default": [] "default": []
} }
@ -1976,7 +1968,7 @@
}, },
"subject": { "subject": {
"type": "string", "type": "string",
"description": "Subject for push. Example: 'mailto:contact@example.com'" "description": "Subject field embedded in the push notification. Example: 'mailto:contact@example.com'"
} }
}, },
"required": ["vapid_keys", "subject"], "required": ["vapid_keys", "subject"],
@ -2026,14 +2018,14 @@
"blocked": { "blocked": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"followers_only": { "followers_only": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
@ -2043,63 +2035,63 @@
"reports": { "reports": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"deletes": { "deletes": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"updates": { "updates": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"media": { "media": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"follows": { "follows": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"likes": { "likes": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"reactions": { "reactions": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"banners": { "banners": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
}, },
"avatars": { "avatars": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/properties/http/properties/proxy_address" "type": "string"
}, },
"default": [] "default": []
} }