mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
Fix: caddy widget broken in 0.9.1 (#3579)
This commit is contained in:
parent
9a20982406
commit
ccc27142ef
@ -8,7 +8,7 @@ export default function Component({ service }) {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
const { data: resultData, error: resultError } = useWidgetAPI(widget, "result");
|
const { data: resultData, error: resultError } = useWidgetAPI(widget, "upstreams");
|
||||||
|
|
||||||
if (resultError) {
|
if (resultError) {
|
||||||
return <Container service={service} error={resultError} />;
|
return <Container service={service} error={resultError} />;
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||||
|
|
||||||
const widget = {
|
const widget = {
|
||||||
api: "{url}/reverse_proxy/upstreams",
|
api: "{url}/{endpoint}",
|
||||||
proxyHandler: genericProxyHandler,
|
proxyHandler: genericProxyHandler,
|
||||||
|
|
||||||
|
mappings: {
|
||||||
|
upstreams: {
|
||||||
|
endpoint: "reverse_proxy/upstreams",
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default widget;
|
export default widget;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user