1
0
قرینه از https://github.com/karl0ss/homepage.git synced 2025-06-11 13:55:07 +01:00

Change cloudflare widget to use api tokens

This commit is contained in:
shamoon 2023-02-26 08:18:47 -08:00
والد 86383e5dce
کامیت e9790e5677

مشاهده پرونده

@ -44,8 +44,7 @@ export default async function credentialedProxyHandler(req, res, map) {
} 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}`;
headers.Authorization = `Bearer ${widget.key}`;
} else if (widget.type === "pterodactyl") {
headers.Authorization = `Bearer ${widget.key}`;
} else {