Small fix
This commit is contained in:
parent
3b579f1f97
commit
84d66c598f
2 changed files with 2 additions and 34 deletions
34
app/page.tsx
34
app/page.tsx
|
|
@ -20,41 +20,9 @@ export default function Home() {
|
||||||
if (error) return <Error />
|
if (error) return <Error />
|
||||||
if (isLoading) return <Loading />
|
if (isLoading) return <Loading />
|
||||||
|
|
||||||
let route = {
|
|
||||||
"handle": [
|
|
||||||
{
|
|
||||||
"handler": "subroute",
|
|
||||||
"routes": [
|
|
||||||
{
|
|
||||||
"handle": [
|
|
||||||
{
|
|
||||||
"handler": "reverse_proxy",
|
|
||||||
"upstreams": [
|
|
||||||
{
|
|
||||||
"dial": "1.1.1.1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"match": [
|
|
||||||
{
|
|
||||||
"host": [
|
|
||||||
"containers.grug.dev",
|
|
||||||
"containers.daddyimpregnant.com",
|
|
||||||
"containers.mizuledevelopment.com"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"terminal": true
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
{routeDialog && <RouteDialog route={route as Route} />}
|
{routeDialog && <RouteDialog route={routes as Route} />}
|
||||||
<div className='flex items-center justify-center p-6'>
|
<div className='flex items-center justify-center p-6'>
|
||||||
<Card className='flex'>
|
<Card className='flex'>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ interface Match {
|
||||||
interface Handle {
|
interface Handle {
|
||||||
handler: string;
|
handler: string;
|
||||||
upstreams: Upstream[];
|
upstreams: Upstream[];
|
||||||
routes: Route[];
|
routes?: Route[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Upstream {
|
interface Upstream {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue