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 16:07:17 +01:00 committed by GitHub
parent 94bbcbe1fb
commit 2b8647b2ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 82 additions and 0 deletions

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