The proxy holds a read-only GitHub token to read the private module repositories. Limit it to the module repositories.
- GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token.
- Resource owner: the account/org that owns the module repos.
- Expiration: set one (e.g. 90 days to 1 year) and put the date in your calendar.
- Repository access → Only select repositories: pick only the module repos listed in
config.json(e.g.FoundryVTT-ghpg-Transformations). - Permissions → Repository permissions → Contents: Read-only. This also covers releases and their assets. Leave everything else at "No access" (Metadata: read-only is added automatically).
- Generate and copy the
github_pat_...token (shown once).
A 404 for a release can also mean the token cannot see that repo (GitHub hides private repos with 404), so when a module is not found, check the token's repository access first. Each module you add later needs its repository added to the token's access as well; see Adding Another Private Module.
Rotating
Before the expiry, generate a new token the same way (or use Regenerate token on the existing one).
- On the admin page: on the Admin Page under GitHub token, click Add new token, paste it and press Add (with no token set yet, paste it into the field on the page and press Save token): the proxy checks it with GitHub, saves it to
envand uses it at once. Test setup then shows what the new token can read. - Without the admin page:
sudo nano /etc/foundry-release-proxy/env, replaceGITHUB_TOKEN, andsudo systemctl restart foundry-release-proxy.
Delete the old token on GitHub afterwards. The daily check e-mails you two weeks before the token expires and again if it lapses.
Next: install on Linux or on Windows.
This page mirrors the Private GitHub Proxy wiki on GitHub.