4c7cc26281
api/ (ElysiaJS+Bun WS gateway skeleton), worker/ (Rust, Redis dirty-chunk stream consumer behind a swappable RenderBackend trait), frontend/ (ElysiaJS+Pug+Tailwind4+Alpine, one server-rendered page) — all three verified running locally. docker-compose wires them up with postgres, redis, minio (rendered tile/mesh object storage), and Caddy as reverse proxy.
21 lines
409 B
Caddyfile
21 lines
409 B
Caddyfile
# Reverse proxy: WS/API traffic to `api`, everything else to `frontend`.
|
|
# Point CADDY_DOMAIN at a real hostname (and remove `auto_https off` + the `:80` binding
|
|
# below) once this is deployed somewhere with a resolvable domain for automatic TLS.
|
|
{
|
|
auto_https off
|
|
}
|
|
|
|
:80 {
|
|
handle /ws* {
|
|
reverse_proxy api:3000
|
|
}
|
|
|
|
handle /api/* {
|
|
reverse_proxy api:3000
|
|
}
|
|
|
|
handle {
|
|
reverse_proxy frontend:3001
|
|
}
|
|
}
|