Dxcufgb's Workshop

Private GitHub Proxy documentation

WIPWork in progress: may be very buggy and can change a lot between versions.

A tiny HTTP proxy that lets a self-hosted Foundry VTT server install and update modules whose releases live in private GitHub repositories. Foundry cannot authenticate to GitHub, so the proxy holds a read-only token, serves the module manifest, and passes the zip through from a short-lived GitHub URL with the module's own module.json pointed at the proxy, so that Foundry's update checks come back to it.

Node.js only, no npm dependencies. Runs as a systemd service on Linux (e.g. a Raspberry Pi) or as a scheduled task on Windows, and can optionally keep itself up to date from this repository's releases (and e-mail you when it did). A password-protected administration page (/_admin/) lists the modules, adds, edits and deletes them, copies a module's link for Foundry, and manages the notification e-mail addresses. Worlds backed up to a private repository work the same way, with world.json and world.zip (Backed-up worlds).

Foundry ──manifest URL──▶ proxy ──token──▶ GitHub API (latest release, manifest asset)
Foundry ◀── manifest with download/manifest rewritten to the proxy
Foundry ──download URL──▶ proxy ◀── pre-signed GitHub URL (no token): the zip streamed through, module.json patched
Runs on Linux (systemd, e.g. a Raspberry Pi) or Windows (scheduled task)
Needs a read-only GitHub token; Node.js (Linux: 18 or newer, the installer offers to download it if missing; Windows: the setup wizard brings its own, the PowerShell install needs 20.6 or newer)
Module links http://localhost:8787/<module-id>/module.json (worlds: http://localhost:8787/<world-id>/world.json)
Admin page http://localhost:8787/_admin/, or https://<this machine>:8788/ on its own port
Latest release Releases

Start here

  1. Create the GitHub Token: a fine-grained, read-only token for the module repositories.
  2. Install: on Linux or on Windows.
  3. Foundry in Docker: only if Foundry runs in a container.
  4. Install a Module in Foundry with the proxy's manifest URL.

Day to day

The admin page from other computers

Reference

Help

Something not working? See Troubleshooting first, then open an issue.

This page mirrors the Private GitHub Proxy wiki on GitHub.