Configuration
Configuration
gpsu’s settings live in two places:
| Where | Holds | Changed with | Takes effect |
|---|---|---|---|
| Startup settings | The database, listeners, the public URL, and secret sources | Environment variables or gpsu serve flags | After a restart |
| gpsu’s database | Everything else | The web UI, gpsu commands, or the API | At once |
Startup settings
gpsu serve reads each startup setting from its flag, then its environment variable, then its default. Only GPSU_PUBLIC_URL has no default.
GPSU_PUBLIC_URL=https://gpsu.example.com \
GPSU_SEAL_KEY_FILE=/run/secrets/gpsu-seal-key \
gpsu serve| Variable | Flag | Default | Page |
|---|---|---|---|
GPSU_PUBLIC_URL | --public-url | Sign-In and the API | |
GPSU_LISTEN | --listen | :8080 | Sign-In and the API |
GPSU_TRUSTED_PROXIES | --trusted-proxies | Sign-In and the API | |
GPSU_SEAL_KEY_FILE, GPSU_SEAL_KEY_VAULT | --seal-key-file, --seal-key-vault | Seal Key | |
GPSU_SEAL_PREVIOUS_KEY_FILES, GPSU_SEAL_PREVIOUS_KEY_VAULT | --seal-previous-key-files, --seal-previous-key-vault | Seal Key | |
GPSU_STORE_DRIVER | --store-driver | sqlite | Storage and Backups |
GPSU_STORE_PATH | --store-path | /var/lib/gpsu/gpsu.db | Storage and Backups |
GPSU_STORE_URI_FILE, GPSU_STORE_URI_VAULT | --store-uri-file, --store-uri-vault | Storage and Backups | |
GPSU_BACKUP_DIR | --backup-dir | /var/lib/gpsu/backups | Storage and Backups |
GPSU_VAULT_* | --vault-* | Secrets in Vault | |
GPSU_METRICS_LISTEN | --metrics-listen | :9465 | Monitoring |
GPSU_PPROF_LISTEN, GPSU_PPROF_API | --pprof-listen, --pprof-api | Monitoring |
- gpsu doesn’t start if a setting doesn’t read. It exits with code 2 and names the setting.
- Lists such as
GPSU_TRUSTED_PROXIESseparate their items with commas. - A switch such as
GPSU_PPROF_APItakestrueorfalse. Its flag takes no value. - The Status page lists the startup settings gpsu started with.
In the database
| Settings | Page |
|---|---|
| Servers and their hard limits | Servers, Hard Limits |
| The identity provider and sign-in limits | Sign-In and the API |
| Notification targets and delivery rules | Notifications |
| How curves learn | Learning |
| Backups and history retention | Storage and Backups |
Secrets
No startup setting holds a secret. Each secret has two settings. Use one of them:
| Setting | Reads the secret from |
|---|---|
<NAME>_FILE | A file, such as a mounted Kubernetes secret |
<NAME>_VAULT | A key in Vault written as [MOUNT:]PATH#KEY |