config.json
config.json (path from CONFIG_FILE, default ./config.json; see config.example.json) maps each Foundry module id to its repository:
{
"transformations": { "repo": "dxcufgb/FoundryVTT-ghpg-Transformations" }
}
Optional per-entry settings:
| Key | What it does |
|---|---|
"type" |
"module" (default) or "world": a backed-up world, served as world.json and world.zip instead of module.json and module.zip (proxy versions newer than 1.7.5) |
"manifestAsset" |
the release asset with the manifest; default module.json (world.json for a world) |
"zipAsset" |
the release asset with the zip; default module.zip (world.zip for a world) |
{
"transformations": { "repo": "dxcufgb/FoundryVTT-ghpg-Transformations" },
"my-campaign": { "repo": "owner/my-campaign-backup", "type": "world" }
}
Any other "type" (or any unknown key) makes the proxy refuse to start: module "<id>" has an invalid "type" ("module" or "world").
The file is validated at startup; a malformed one makes the proxy refuse to start with a clear message. Changes made on the administration page take effect at once (and are written back to the file); after editing the file by hand, restart the service. An empty {} is only accepted while the administration page is on.
Installed, it is /etc/foundry-release-proxy/config.json on Linux and C:\ProgramData\FoundryReleaseProxy\config.json on Windows.
Environment variables (env)
See .env.example. Installed, they live in /etc/foundry-release-proxy/env or C:\ProgramData\FoundryReleaseProxy\env; restart the service after editing.
| Variable | What it does |
|---|---|
GITHUB_TOKEN |
required |
PORT |
default 8787 |
HOST |
default 127.0.0.1 |
PUBLIC_BASE_URL |
default http://localhost:<PORT> |
PATCH_ZIPS |
off: zips are plain redirects, see Module zips and updates |
CONFIG_FILE |
path of config.json |
ADMIN_FILE |
default admin.json next to CONFIG_FILE |
ENV_FILE |
the file holding GITHUB_TOKEN, where a token changed on the admin page is saved; default env next to CONFIG_FILE |
DAILY_CHECK |
off turns off the daily check |
ADMIN_HOSTS |
extra host names the admin page answers to, comma separated |
UPDATE_REQUEST_FILE (Linux), UPDATE_TASK (Windows) |
override the file and task names of Update proxy now for a hand-made setup |
The admin page in the browser settings: ADMIN_PORT, ADMIN_HOST, ADMIN_TLS, ADMIN_TLS_CERT, ADMIN_TLS_KEY, ADMIN_PUBLIC_URL, ADMIN_TRUST_PROXY. What each one does is on that page.
Installer environment variables
Tokens and passwords are never taken as command-line arguments. The installers read them from the environment:
| Variable | Used for |
|---|---|
FOUNDRY_PROXY_GITHUB_TOKEN |
the proxy's token; with --yes, a first install needs it (Linux, Windows) |
FOUNDRY_PROXY_ADMIN_PASSWORD |
the admin page password for non-interactive installs (Admin Page) |
FOUNDRY_PROXY_ADMIN_WEB |
yes (or 1, true) = a first install serves the admin page to other computers, like --admin-web / -AdminWeb (Admin Page in Your Browser) |
FOUNDRY_PROXY_ADMIN_PORT |
a different admin port, e.g. FOUNDRY_PROXY_ADMIN_PORT=10443 (default 8788; Admin Page in Your Browser) |
FOUNDRY_PROXY_ADMIN_PUBLIC_URL |
the admin page's public address, written to env as ADMIN_PUBLIC_URL, e.g. https://proxy.example.com:8788 |
UPDATER_GITHUB_TOKEN, INSTALL_GITHUB_TOKEN |
the updater's optional token (Automatic Updates) |
FOUNDRY_PROXY_NOTIFY_EMAILS, FOUNDRY_PROXY_SMTP_HOST, FOUNDRY_PROXY_SMTP_PORT, FOUNDRY_PROXY_SMTP_SECURITY, FOUNDRY_PROXY_SMTP_USER, FOUNDRY_PROXY_SMTP_PASSWORD, FOUNDRY_PROXY_SMTP_FROM |
the notification settings (Notifications and Daily Check) |
Other files
| File | What |
|---|---|
admin.json |
password hash and notification settings, next to config.json; see Admin Page |
admin-tls.crt / admin-tls.key |
the admin port's certificate, next to config.json; see Admin Page in Your Browser |
auto-update.conf |
the automatic-update choice and TOKEN_FILE, next to env; see Automatic Updates |
updater-token |
the updater's own token, if any; see Automatic Updates |
update-request |
Linux only, for Update proxy now |
Running it by hand
Run locally: GITHUB_TOKEN=... CONFIG_FILE=config.example.json node src/server.js. Tests: npm test (proxy, admin page, mailer and updater; no network needed).
This page mirrors the Private GitHub Proxy wiki on GitHub.