A minimal self-hosted git browser on Rust axum: bare repos rendered as a website with commits, diffs, syntax-highlighted blobs, atom feeds, and clone over HTTPS.
axumdockergitgit-browsergitoxidegixrustself-hosted
1# Production .env for repos (drop in next to docker-compose.yml).
2# All values shown are defaults; the only one you'll normally want to
3# override is BASE_URL when running behind a reverse proxy on a custom path.
4
5# HTTP port the binary listens on inside the container (Caddy reaches us
6# by name on the bythewood-edge network).
7PORT=8000
8
9# Where the bare repos live on the host. Mounted into the container in
10# docker-compose.yml as a read-only bind.
11REPOS_REPO_ROOT=/srv/git
12
13# Public origin used for clone URLs and atom feed self-links.
14REPOS_CLONE_BASE=https://repos.bythewood.me
15
16# Optional cosmetics.
17REPOS_TITLE=repos
18REPOS_TAGLINE=