Skip to content

Commit

Permalink
pd: allow bundling the web frontend into the fullnode
Browse files Browse the repository at this point in the history
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
hdevalence committed Feb 25, 2024
1 parent de591bb commit 1ab2e6a
Show file tree
Hide file tree
Showing 8 changed files with 653 additions and 454 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.bin filter=lfs diff=lfs merge=lfs -text
assets/** filter=lfs diff=lfs merge=lfs -text
Loading

0 comments on commit 1ab2e6a

Please sign in to comment.