An optional, password-protected web page, like the admin pages of the Foundry world backup and the release proxy, shows the bot's state and changes its settings without Discord:
- Overview: Foundry up/down, the active world, Foundry's version, the Discord connection and the configuration from
.env(never the token). - Monitoring: the announcement switches of
/monitorand the update tracking of/updates settings, and the restart window. - Servers and campaigns: each server's channel routing, mention role and GM role, and each campaign's channel and voice channel, chosen from dropdowns (the same settings as
/channel,/gm-roleand/campaign edit; saving warns when the bot lacks a permission in the chosen channel), plus each campaign's world, players and next session. - Session summaries: on/off, the age limit, the summary folder, the recent summaries and where they were posted, and Post now.
- Admin password.
Turning it on
It is off by default. To turn it on, set ADMIN_PORT (for example ADMIN_PORT=8486) in .env, set a password and restart the bot:
cd /opt/foundryvtt-discord-integration && sudo node scripts/admin-password.js # Linux installation
npm run admin-password # from source / Windows (as administrator)
sudo systemctl restart foundryvtt-discord-bot
Then open https://<this machine>:8486/.
Certificate and security
The page uses HTTPS with a self-signed certificate the bot makes once (data/admin-tls.crt), so the browser warns the first time; the login page offers the certificate for download so it can be trusted. Five wrong passwords lock an address out for five minutes. A plain http:// request on the page's port is redirected to https:// only for a host name the page accepts (ADMIN_HOSTS, localhost, this machine's names and addresses); any other name gets 400 use https://.
More options (own certificate, reverse proxy, extra host names) are in .env.example: ADMIN_HOST, ADMIN_HOSTS, ADMIN_TLS, ADMIN_TLS_CERT, ADMIN_TLS_KEY, ADMIN_TRUST_PROXY. See the Configuration Reference.
On Windows, allow the port in the firewall if the page should be reachable from other machines.
npm run check-config tells whether the administration page is set up.
Icon / bot avatar
![]()
The project icon is assets/icon.png (transparent background); the administration page uses the same d20 as its favicon and logo. To use it as the bot's avatar, open the Discord Developer Portal, select the application, and upload it under General Information → App Icon and under Bot → Icon (the avatar shown in your servers).
This page mirrors the Discord Integration wiki on GitHub.