refactor(api): 🔥 Remove Glitch-FE explicit support

This commit is contained in:
Jesse Wierzbinski 2024-08-27 16:45:05 +02:00
parent df466ecaa0
commit bec60fbf96
No known key found for this signature in database
12 changed files with 8 additions and 691 deletions

View file

@ -120,7 +120,7 @@ bait_ips = ["127.0.0.1", "::1"]
bait_user_agents = ["curl", "wget"]
[frontend]
# Enable custom frontends (warning: not enabling this or Glitch will make Versia Server only accessible via the Mastodon API)
# Enable custom frontends (warning: not enabling this will make Versia Server only accessible via the Mastodon API)
# Frontends also control the OAuth flow, so if you disable this, you will need to use the Mastodon frontend
enabled = true
# The URL to reach the frontend at (should be on a local network)
@ -141,14 +141,6 @@ url = "http://localhost:3000"
# This can be used to set up custom themes, etc on supported frontends.
# theme = "dark"
[frontend.glitch]
# Enable the Glitch frontend integration
enabled = false
# Glitch assets folder
assets = "glitch"
# Server the assets were ripped from (and any eventual CDNs)
server = ["https://tech.lgbt"]
[smtp]
# SMTP server to use for sending emails
server = "smtp.example.com"

View file

@ -392,33 +392,6 @@
"$ref": "#/properties/http/properties/proxy/properties/address/anyOf/0",
"default": "http://localhost:3000"
},
"glitch": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"assets": {
"type": "string",
"minLength": 1,
"default": "glitch"
},
"server": {
"type": "array",
"items": {
"$ref": "#/properties/http/properties/proxy/properties/address/anyOf/0"
},
"default": []
}
},
"additionalProperties": false,
"default": {
"enabled": false,
"assets": "glitch",
"server": []
}
},
"routes": {
"type": "object",
"properties": {
@ -463,11 +436,6 @@
"default": {
"enabled": true,
"url": "http://localhost:3000",
"glitch": {
"enabled": false,
"assets": "glitch",
"server": []
},
"settings": {}
}
},