Feature: Linkwarden service widget (#3836)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
PyrokineticDarkElf 2024-08-09 22:19:06 +01:00 committed by GitHub
parent b9b7c482d4
commit 4d38222ba0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 107 additions and 3 deletions

View file

@ -35,9 +35,16 @@ export default async function credentialedProxyHandler(req, res, map) {
} else if (widget.type === "gotify") {
headers["X-gotify-Key"] = `${widget.key}`;
} else if (
["authentik", "cloudflared", "ghostfolio", "mealie", "tailscale", "tandoor", "pterodactyl"].includes(
widget.type,
)
[
"authentik",
"cloudflared",
"ghostfolio",
"linkwarden",
"mealie",
"tailscale",
"tandoor",
"pterodactyl",
].includes(widget.type)
) {
headers.Authorization = `Bearer ${widget.key}`;
} else if (widget.type === "truenas") {