Skip to content

Install on Linux

dxcufgb edited this page Oct 30, 2026 · 1 revision

Install on Linux (Raspberry Pi)

Install

curl -fsSL https://raw.githubusercontent.com/dxcufgb/install/main/install.sh | sudo bash -s foundry-release-proxy

Or download foundry-release-proxy-linux.tar.gz from the latest release and run:

tar xzf foundry-release-proxy-linux.tar.gz
cd foundry-release-proxy-X.Y.Z
sudo ./install.sh

A clone of this repository works the same way (git clone ..., cd, sudo ./install.sh).

Download links

OS Link
Linux / Raspberry Pi https://github.com/dxcufgb/FoundryVTT-Private-Github-proxy/releases/latest/download/foundry-release-proxy-linux.tar.gz

On a machine without a browser: gh release download --repo dxcufgb/FoundryVTT-Private-Github-proxy --pattern foundry-release-proxy-linux.tar.gz, or the one-liner above.

Files of a release X.Y.Z for Linux:

File What
foundry-release-proxy-X.Y.Z-linux.tar.gz Linux archive; one folder foundry-release-proxy-X.Y.Z/ with install.sh at its top
foundry-release-proxy-linux.tar.gz the same under a fixed name, so releases/latest/download/<name> links never change
SHA256SUMS.txt sha256sum of every other file of the release

What the installer asks

  • The GitHub token (input hidden); press Enter to skip and paste it into the env file later. The service is only started once a token is present.
  • On a first install, the admin page password and the notification e-mails (Enter skips both). See Admin Page and Notifications and Daily Check.
  • At the end, whether to turn on automatic updates (default: no).

Then edit /etc/foundry-release-proxy/config.json if needed and restart.

Node.js

install.sh is the single entry point: it looks for a usable Node.js (18 or newer, system-wide, not nvm in a home directory, because the service runs as its own user). If there is none it offers to download the official Node.js 22 for your CPU from nodejs.org (checked against nodejs.org's SHA-256, unpacked to /opt/foundry-release-proxy-node). Then it runs scripts/install-service.sh with the other options (that script still works on its own with the same options).

What it installs

The script creates a foundry-proxy system user and installs:

  • /opt/foundry-release-proxy/: the code (replaced each run)
  • /etc/foundry-release-proxy/config.json: your module mapping (never overwritten; survives code updates)
  • /etc/foundry-release-proxy/env: token and settings (chmod 600, owned by the service user)
  • a systemd unit foundry-release-proxy with Restart=always, enabled on boot

Installer options

Option Meaning
(none) install or upgrade in place, interactive (asks for what it needs)
--yes, -y non-interactive: no questions; missing required settings → clear error
--auto-update / --no-auto-update turn automatic updates on / off as part of this install
--enable-auto-update / --disable-auto-update turn them on / off on an existing install, nothing else
--check-update only check: exit 0 = up to date, 10 = newer release available, other = error
--update-now install the latest release now (same path as the daily updater)
--uninstall [--purge] remove (keep / also delete settings and data)
--help usage listing exactly these first, then the repo-specific options

Options of this installer:

  • --module ID=OWNER/REPO: first install: put this module in config.json; repeatable.
  • --install-node / --no-install-node: download Node.js without asking / never.
  • --set-admin-password and --set-notify: see Admin Page.
  • --admin-web, --no-admin-web and --renew-admin-cert: see Admin Page in Your Browser.
  • the older name --check (= --check-update).

Tokens are never taken as arguments: the proxy's token comes from a hidden prompt or FOUNDRY_PROXY_GITHUB_TOKEN, the updater's optional one from UPDATER_GITHUB_TOKEN or INSTALL_GITHUB_TOKEN (see automatic updates). With --yes, a first install needs FOUNDRY_PROXY_GITHUB_TOKEN, and Node.js is downloaded if none is usable.

Unattended install

With everything on the command line:

sudo --preserve-env=FOUNDRY_PROXY_GITHUB_TOKEN env FOUNDRY_PROXY_GITHUB_TOKEN=github_pat_... \
  ./install.sh --yes --auto-update --module transformations=dxcufgb/FoundryVTT-ghpg-Transformations

(--module only applies to a first install. Without it the example config is installed and you edit it afterwards.) The other environment variables the installer reads are listed in the Configuration Reference.

Check that it runs

systemctl status foundry-release-proxy
journalctl -u foundry-release-proxy -f
curl -s  http://localhost:8787/transformations/module.json   # manifest; "download" points at the proxy
curl -sI http://localhost:8787/transformations/v1.2.0/module.zip   # HTTP 200 (zip with module.json patched), or 302 + Location: when it cannot be patched

Use the tag of a real release in the second command. Day to day: sudo systemctl status|restart|stop foundry-release-proxy.

Updating the proxy

Run the one-liner or sudo ./install.sh from a newer release again (config, env and the auto-update choice are kept), or sudo ./install.sh --update-now to install the latest release. To have it done daily, see Automatic Updates.

Removing

sudo ./install.sh --uninstall removes the service, the updater timer, the updater token, the code and a Node.js that install.sh downloaded; it keeps /etc/foundry-release-proxy/config.json and env. Add --purge to delete /etc/foundry-release-proxy and the foundry-proxy user as well.

Next: if Foundry runs in a container, read Foundry in Docker; otherwise Install a Module in Foundry.

Clone this wiki locally