A POC Caddy module serving River UI
This module is currently WIP. Things will change.
It relies on the River UI library, which itself is also under development.
Create a (custom) Caddy server (or use xcaddy)
package main
import (
cmd "github.com/caddyserver/caddy/v2/cmd"
_ "github.com/caddyserver/caddy/v2/modules/standard"
// enable the River UI handler
_ "github.com/hslatman/caddy-riverui"
)
func main() {
cmd.Main()
}
Example Caddyfile (without route):
{
order riverui first
}
localhost {
riverui
}
Example Caddyfile (with route):
localhost {
route {
riverui
}
}
- Support configuration through Caddyfile, JSON and environment
- Make configuration compatible with River UI (e.g. RIVER_DEBUG)
- Fix CORS configuration option and ensure working as expected
- Ensure handler is provisioned lazily (i.e. no active DB connection establishment)
- Support running on host/port other than https://localhost:80, which is currently hardcoded in the web app build
- Split frontend and backend handlers?
- Example with authentication, using caddy-security (AuthCrunch)?
- ...