adding cloudflare widget

This commit is contained in:
KillahBee 2023-01-20 11:43:19 -05:00
parent 01eea51555
commit fa1792cd5f
6 changed files with 58 additions and 0 deletions

View file

@ -40,6 +40,9 @@ export default async function credentialedProxyHandler(req, res, map) {
headers.Authorization = `Token ${widget.key}`;
} else if (widget.type === "miniflux") {
headers["X-Auth-Token"] = `${widget.key}`;
} else if (widget.type === "cloudflared") {
headers["X-Auth-Email"] = `${widget.email}`;
headers["X-Auth-Key"] = `${widget.key}`;
} else {
headers["X-API-Key"] = `${widget.key}`;
}