Add a caddy http directive to serve a web ui for admin api.
Build caddy with this package
xcaddy build --with github.com/gsmlg-dev/caddy-admin-ui@main
Add a http config
{
admin localhost:2021
}
:2022 {
route {
caddy_admin_ui
reverse_proxy localhost:2021 {
header_up Host localhost:2021
}
}
}