Add Proxmox widget

This commit is contained in:
Jason Fischer committed 2022-10-04 21:46:48 -07:00
1 parent 88c774339d
commit a9fb458f19
6 files changed
+78

No files matched your search

+2
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}`;
}