HUB
Sign inSign up
renderwall logo

mancube/renderwall

By mancube

•Updated 10 days ago

Render-cost firewall for git forges: serves immutable pages from a content-addressed store

Image
0

116

mancube/renderwall repository overview

⁠renderwall

A render-cost firewall for git forges: precompute what is immutable, refuse to guess about everything else.

Scrapers walk forge pages that are expensive to render and almost never repeat. renderwall is a reverse proxy in front of the forge: it classifies each request path, passes everything dynamic through untouched, and serves pages that are pure functions of an immutable identifier (a commit, a diff, a blob or blame at a revision, a release, a build) from a zstd-compressed, content-addressed store, filled once on first miss and keyed by object identity, never by URL.

Six grammars: cgit, forgejo, gitlab, docs.rs, Blockscout, Jenkins.

The image is one static binary on distroless, running as a non-root user (uid 65532): no shell, no package manager.

⁠Tags

TagWhat
0.1.0That exact release
0.1The latest 0.1.x
latestThe latest release

Every tag is linux/amd64 and linux/arm64. The binaries inside are the same ones attached to the GitHub release⁠.

⁠Run it

The image carries no config; mount yours. Inside a container, listen on all interfaces:

mode = "shadow"                      # "shadow" counts and prices; "enforce" serves from the store
listen = "0.0.0.0:8080"
admin_listen = "0.0.0.0:9090"        # /stats and /healthz — publish it to the host only
upstream = "http://forge:80"         # your cgit / forgejo / gitlab / ...

[forge]
kind = "cgit"                        # cgit | forgejo | gitlab | docsrs | blockscout | jenkins

[visibility]
public_repos = ["linux.git"]         # only these are ever stored

[store]
root = "/var/lib/renderwall"
$ docker run -d --name renderwall \
    -v ./renderwall.toml:/etc/renderwall/renderwall.toml:ro \
    -v renderwall-store:/var/lib/renderwall \
    -p 8080:8080 -p 127.0.0.1:9090:9090 \
    mancube/renderwall:0.1.0
$ curl -s 127.0.0.1:9090/stats
PathPurpose
/etc/renderwall/renderwall.tomlConfig (the default run --config path)
/var/lib/renderwallThe store. A volume, owned by uid 65532
8080The proxy
9090Admin: /stats, /healthz. Point health checks here

Other subcommands take the config path explicitly (only run defaults to it):

$ docker run --rm -v ./renderwall.toml:/etc/renderwall/renderwall.toml:ro \
    mancube/renderwall:0.1.0 explain -c /etc/renderwall/renderwall.toml '/linux.git/commit/?id=<40-hex oid>'

⁠Before you expose it

  • Terminate TLS in front of it. renderwall speaks plain HTTP on both sides, and passes credentialed requests through untouched. examples/eggrd⁠ puts mancube/eggrd⁠ in front: TLS from Let's Encrypt, security headers, a per-address cap and a WAF, with renderwall reachable only through it, in one docker compose up.
  • Keep the admin port private. /stats is not authenticated: publish it to 127.0.0.1 on the host, as above, or not at all.
  • Start in shadow mode. It changes no served bytes; it measures what enforce would absorb, so the decision is made on your own traffic.

⁠More

Source, documentation and the design records: https://github.com/lucheeseng827/renderwall⁠. Also on crates.io: cargo install renderwall. Licensed Apache-2.0.

Tag summary

Content type

Image

Digest

sha256:74c7e58bd…

Size

1.9 MB

Last updated

10 days ago

docker pull mancube/renderwall