Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pd: allow bundling the web frontend into the fullnode
This is an experiment towards bundling the web frontend code into the fullnode, with the goal that users who run `pd` nodes can self-host a complete Penumbra frontend, on their custom domain with auto-HTTPS, with just one command: `pd start`. To do this, we - add a new `zipserve` module in `pd`, which takes a `&'static [u8]` with archive data and produces an `axum::Router`; - bundle an `assets/{minifront,node_status}.zip` (tracked with git-lfs) into the `pd` crate; - use `axum::Router::merge` to combine the GRPC and frontend endpoints.
- Loading branch information