Refactor image hosting to remove imgbb support and enable uguu.se as the primary image host

This commit is contained in:
deluan
2026-02-04 16:07:39 -05:00
parent a6386d0fc9
commit 0f14624678
4 changed files with 25 additions and 182 deletions
+6 -24
View File
@@ -11,7 +11,7 @@
},
"http": {
"reason": "To communicate with Discord API for gateway discovery and image uploads",
"requiredHosts": ["discord.com", "api.imgbb.com", "uguu.se"]
"requiredHosts": ["discord.com", "uguu.se"]
},
"websocket": {
"reason": "To maintain real-time connection with Discord gateway",
@@ -42,16 +42,10 @@
"maxLength": 20,
"pattern": "^[0-9]+$"
},
"imagehost": {
"type": "string",
"title": "Image Hosting Service",
"description": "Upload artwork to a public image host so Discord can display it. Required when Navidrome is not publicly accessible.",
"enum": ["", "imgbb", "uguu"]
},
"imgbbapikey": {
"type": "string",
"title": "imgbb API Key",
"description": "API key from imgbb.com. Get one at https://api.imgbb.com/"
"uguuenabled": {
"type": "boolean",
"title": "Upload artwork to uguu.se (enable if Navidrome is not publicly accessible)",
"default": false
},
"users": {
"type": "array",
@@ -89,19 +83,7 @@
},
{
"type": "Control",
"scope": "#/properties/imagehost"
},
{
"type": "Control",
"scope": "#/properties/imgbbapikey",
"options": { "format": "password" },
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#/properties/imagehost",
"schema": { "const": "imgbb" }
}
}
"scope": "#/properties/uguuenabled"
},
{
"type": "Control",