Like Webmin on its port 10000, the admin page can have its own port, served over HTTPS to every browser on your network: https://<this machine>:8788/. That port serves only the admin page; the module proxy stays on 127.0.0.1, so nothing without a password is ever exposed.
Turning it on and off
| Linux | Windows (elevated PowerShell) | |
|---|---|---|
| turn on | sudo ./install.sh --admin-web (a first install asks) |
.\scripts\install-service.ps1 -AdminWeb (the setup wizard asks) |
| turn off | sudo ./install.sh --no-admin-web |
.\scripts\install-service.ps1 -NoAdminWeb |
| new certificate | sudo ./install.sh --renew-admin-cert |
.\scripts\install-service.ps1 -RenewAdminCert |
The installer prints the addresses (https://raspberrypi:8788/, https://192.168.1.20:8788/, ...).
A different port: FOUNDRY_PROXY_ADMIN_PORT=10443 (Linux: sudo --preserve-env=FOUNDRY_PROXY_ADMIN_PORT ./install.sh --admin-web). A port below 1024, such as 443, is fine as well: the service then gets the one capability needed to bind it.
Certificate
The installer makes a self-signed certificate for the machine's names and addresses (admin-tls.crt / admin-tls.key next to config.json, readable by the proxy but owned by root / Administrators). Your browser warns about it once ("not private" / "potential security risk"): compare the SHA-256 fingerprint the installer printed with the one the browser shows, then accept it. To let the browser save the admin password as well, see Trusting the Certificate.
A real certificate (your own CA, Let's Encrypt) goes in ADMIN_TLS_CERT and ADMIN_TLS_KEY (paths to PEM files the proxy's account can read) in env.
Firewall
Windows: the installer allows the port on private and domain networks. Linux: if ufw is on, the installer prints the sudo ufw allow 8788/tcp you need.
Plain HTTP
http:// on the admin port is redirected to https://.
Settings in env
Restart the service after editing:
ADMIN_PORT(port; unset = off)ADMIN_HOST(address, default0.0.0.0= all)ADMIN_TLS(off= plain HTTP, only behind a reverse proxy)ADMIN_TLS_CERT/ADMIN_TLS_KEYADMIN_PUBLIC_URL(the address used from outside, e.g.https://proxy.example.com)ADMIN_TRUST_PROXY(1= trustX-Forwarded-For/X-Forwarded-Protofrom a reverse proxy on this machine; for a reverse proxy on another machine, its address instead, e.g.192.168.1.5, comma separated for several). Forwarded headers from any other address are ignored, so nobody can fake them to dodge the login lockout.
To reach the page from the internet, see Admin Page on a Public Address.
This page mirrors the Private GitHub Proxy wiki on GitHub.