Skip to content
Configuration

Configuration

gpsu’s settings live in two places:

WhereHoldsChanged withTakes effect
Startup settingsThe database, listeners, the public URL, and secret sourcesEnvironment variables or gpsu serve flagsAfter a restart
gpsu’s databaseEverything elseThe web UI, gpsu commands, or the APIAt 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
VariableFlagDefaultPage
GPSU_PUBLIC_URL--public-urlSign-In and the API
GPSU_LISTEN--listen:8080Sign-In and the API
GPSU_TRUSTED_PROXIES--trusted-proxiesSign-In and the API
GPSU_SEAL_KEY_FILE, GPSU_SEAL_KEY_VAULT--seal-key-file, --seal-key-vaultSeal Key
GPSU_SEAL_PREVIOUS_KEY_FILES, GPSU_SEAL_PREVIOUS_KEY_VAULT--seal-previous-key-files, --seal-previous-key-vaultSeal Key
GPSU_STORE_DRIVER--store-driversqliteStorage and Backups
GPSU_STORE_PATH--store-path/var/lib/gpsu/gpsu.dbStorage and Backups
GPSU_STORE_URI_FILE, GPSU_STORE_URI_VAULT--store-uri-file, --store-uri-vaultStorage and Backups
GPSU_BACKUP_DIR--backup-dir/var/lib/gpsu/backupsStorage and Backups
GPSU_VAULT_*--vault-*Secrets in Vault
GPSU_METRICS_LISTEN--metrics-listen:9465Monitoring
GPSU_PPROF_LISTEN, GPSU_PPROF_API--pprof-listen, --pprof-apiMonitoring
  • gpsu doesn’t start if a setting doesn’t read. It exits with code 2 and names the setting.
  • Lists such as GPSU_TRUSTED_PROXIES separate their items with commas.
  • A switch such as GPSU_PPROF_API takes true or false. Its flag takes no value.
  • The Status page lists the startup settings gpsu started with.

In the database

SettingsPage
Servers and their hard limitsServers, Hard Limits
The identity provider and sign-in limitsSign-In and the API
Notification targets and delivery rulesNotifications
How curves learnLearning
Backups and history retentionStorage and Backups

Secrets

No startup setting holds a secret. Each secret has two settings. Use one of them:

SettingReads the secret from
<NAME>_FILEA file, such as a mounted Kubernetes secret
<NAME>_VAULTA key in Vault written as [MOUNT:]PATH#KEY