mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add Proxmox Backup Server Widget (#879)
* Add Proxmox Backup Server Widget * Clarification added to Failed Tasks * Refactor pbs to proxmoxbackupserver * Removing property instead of recreating object * minor code styling of proxmoxbackupserver widget --------- Co-authored-by: Eizock <> Co-authored-by: Michael Shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -34,6 +34,9 @@ export default async function credentialedProxyHandler(req, res, map) {
|
||||
headers.Authorization = `Bearer ${widget.key}`;
|
||||
} else if (widget.type === "proxmox") {
|
||||
headers.Authorization = `PVEAPIToken=${widget.username}=${widget.password}`;
|
||||
} else if (widget.type === "proxmoxbackupserver") {
|
||||
delete headers["Content-Type"];
|
||||
headers.Authorization = `PBSAPIToken=${widget.username}:${widget.password}`;
|
||||
} else if (widget.type === "autobrr") {
|
||||
headers["X-API-Token"] = `${widget.key}`;
|
||||
} else if (widget.type === "tubearchivist") {
|
||||
|
||||
Reference in New Issue
Block a user