Configure
Configuration reference
Most configuration lives in the console's Settings. A few values are environment variables, set in /opt/deployer/.env on the deployer VM (or .env.local when running locally).
#Console
| Variable | Meaning |
DEPLOYER_SECRET_KEY | Required. 32 random bytes as hex (openssl rand -hex 32). Encrypts the secrets the console stores. Losing it loses them. Made by the setup script. |
DEPLOYER_URL | The console's own address, such as https://admin.example.com. Used in links, the authenticator label and the GitHub webhook. Must be public https:// for Connect GitHub and Create server. |
DEPLOYER_SETUP_TOKEN | One-time code for creating the first owner at /admin/setup. Remove it once the owner exists. |
DEPLOYER_DATA_DIR | Where the SQLite database and uploads live. /data in the container (/opt/deployer/data on the VM). |
DEPLOYER_DB_FILE | Database file, if not <data dir>/deployer.sqlite. |
DEPLOYER_SSH_KEY_FILE or DEPLOYER_SSH_KEY | The private key the console uses to reach servers: a file path, or the key itself. |
DEPLOYER_FAKE_ENGINE | 1 = practice mode: servers, GitHub, buckets and AWS are simulated. Never on a real install. |
DEPLOYER_FAKE_ENGINE_DELAY | Milliseconds each simulated step takes, to see progress screens. |
#Timers
Each background timer can be stopped with off, for example on a second copy of the console used for testing.
| Variable | Stops |
DEPLOYER_MONITOR=off | Monitoring checks and alerts |
DEPLOYER_BACKUPS=off | Scheduled backups and clean-up |
DEPLOYER_DB_WATCH=off | Database size and quota checks |
DEPLOYER_COSTS=off | AWS plugin: the daily cost fetch |
DEPLOYER_PROVISION=off | AWS plugin: server create/delete steps and the daily Lightsail check |
#Other
| Variable | Meaning |
DEPLOYER_MONITOR_ALLOW_PRIVATE | Lets monitoring check private and loopback addresses. For local testing only. |
DEPLOYER_AGENT_DIR | AWS plugin: where the agent/ files are that new servers get. Default ./agent in the image. |
#Deployer VM setup
For deploy/setup-deployer-vm.sh:
| Variable | Meaning |
DEPLOYER_DOMAIN | Required. The console's domain, such as admin.example.com. |
DEPLOYER_SETUP_TOKEN | Optional. Your own first sign-in code (16+ characters, no spaces or quotes). Otherwise one is made up and printed. |
When starting the console with Docker Compose in /opt/deployer, DEPLOYER_IMAGE names the image to run.
#Services VM setup
For agent/setup-clubs-vm.sh:
| Variable | Meaning |
DEPLOYER_PUBLIC_KEY | Required. The console's SSH public key. |
ACME_EMAIL | Required. Email for Let's Encrypt notices. |
AGENT_ROOT | Folder for everything on the server. Default /opt/avrosphere. |
AGENT_NAMESPACE | Prefix of container names, labels and shared networks. Default avrosphere. |
GHCR_USER, GHCR_TOKEN | Optional login for pulling private images from ghcr.io. |
#GitHub Actions
| Workflow | Secrets and variables |
setup-vm.yml (Set up a VM) | See Install → Set up a VM. |
deploy-deployer.yml (Deploy the deployer) | secret DEPLOYER_VM_SSH_KEY, variable DEPLOYER_VM_HOST (and DEPLOYER_VM_USER, DEPLOYER_VM_HOST_KEY). |
build-app-image.yml (app builds) | variable APPS_GITHUB_APP_ID, secret APPS_GITHUB_APP_KEY. Saved for you by Connect GitHub. |
ci.yml | None: type check, tests and build on pull requests. |
#Ports and files
| What | Where |
| Console (dev) | http://localhost:3100/admin |
| Console on the VM | /opt/deployer: .env, docker-compose.yml, Caddyfile, data/, keys/ |
| Services on a server | <AGENT_ROOT>: agent.conf, one folder per service, Caddy config |
| Open ports | 80 and 443 on both VMs; 22 on services VMs from the deployer VM only |
Edit this page on GitHub