Add Proxmox widget

This commit is contained in:
Jason Fischer 2022-10-04 21:46:48 -07:00
parent 88c774339d
commit a9fb458f19
No known key found for this signature in database
6 changed files with 78 additions and 0 deletions

View file

@ -29,6 +29,8 @@ export default async function credentialedProxyHandler(req, res) {
headers["X-gotify-Key"] = `${widget.key}`;
} else if (widget.type === "authentik") {
headers.Authorization = `Bearer ${widget.key}`;
} else if (widget.type === "proxmox") {
headers.Authorization = `PVEAPIToken=${widget.username}=${widget.password}`;
} else {
headers["X-API-Key"] = `${widget.key}`;
}