Feature: gitlab service widget (#4317)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Urs Kröll
2024-11-22 07:07:17 -08:00
committed by GitHub
co-authored by shamoon
parent 94bbcbe1fb
commit 2b8647b2ef
9 changed files with 82 additions and 0 deletions
+2
View File
@@ -94,6 +94,8 @@ export default async function credentialedProxyHandler(req, res, map) {
}
} else if (widget.type === "wgeasy") {
headers.Authorization = widget.password;
} else if (widget.type === "gitlab") {
headers["PRIVATE-TOKEN"] = widget.key;
} else {
headers["X-API-Key"] = `${widget.key}`;
}