Add truenas key to credentialed proxy handler
Revert "Change TrueNAS to use API key" This reverts commit 1926c26b77d8e048d92da6e20ff24a3056237daf. Co-Authored-By: John Hollowell <jhollowe@johnhollowell.com>
This commit is contained in:
parent
f93106970a
commit
34a7b25c9c
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ export default async function credentialedProxyHandler(req, res, map) {
|
|||
headers["X-gotify-Key"] = `${widget.key}`;
|
||||
} else if (widget.type === "authentik") {
|
||||
headers.Authorization = `Bearer ${widget.key}`;
|
||||
} else if (widget.type === "truenas") {
|
||||
headers.Authorization = `Bearer ${widget.key}`;
|
||||
} else if (widget.type === "proxmox") {
|
||||
headers.Authorization = `PVEAPIToken=${widget.username}=${widget.password}`;
|
||||
} else if (widget.type === "autobrr") {
|
||||
|
|
Loading…
Add table
Reference in a new issue