Skip to content

Configuration

The Hub reads its settings from /opt/asdl-hub/.env. The installer writes this file; you rarely need to edit it. Restart after changes:

Terminal window
sudo systemctl restart asdl-hub
Setting Meaning
PUBLIC_URL The Hub’s public URL, e.g. https://hub.example.com. Also the audience GitHub OIDC tokens must use.
OIDC_EXTRA_AUDIENCES Other addresses GitHub OIDC tokens may use as their audience, comma-separated. Set it to the old URL while you move the Hub to a new domain, so workflows that still say hub: https://old.example.com keep deploying until you update them.
SERVER_PORT Local port the Hub listens on (nginx forwards to it). Default 8080.
JWT_SECRET Signs dashboard logins and API tokens. Changing it logs everyone out.
SECRETS_KEY Encrypts project secrets and registry tokens. Never change it on an existing Hub. If unset, the Hub derives the key from JWT_SECRET.
ADMIN_PASSWORD Password for the initial admin user, used only when the database is first created.

DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME, DB_SSLMODE — the PostgreSQL connection. The installer creates a local database named asdl_hub.

Setting Meaning
WG_INTERFACE Interface name on the Hub, default asdl0.
WG_PORT UDP port nodes connect to.
WG_HUB_IP, WG_NETWORK The Hub’s private address and the private network, e.g. 10.101.0.1 in 10.101.0.0/24.
WG_ENDPOINT Address nodes use to reach the Hub, host:port. Nodes follow a change on their next heartbeat (agents from December 2026 on): each one checks the new name resolves, then updates its tunnel and its WireGuard config. Older agents keep the address they joined with. See Move the Hub to a new domain.
VPN_NETWORKS Networks allowed to call the node-only API (heartbeats, jobs). The installer sets the WireGuard network plus this machine itself (127.0.0.0/8, ::1/128), which is where nginx connects from.
TRUSTED_PROXIES Addresses whose X-Forwarded-For and X-Real-IP headers the Hub believes when it works out who is calling: the nginx in front of it. Default 127.0.0.1,::1. Everyone else’s headers are ignored. Since v0.13.5.
Setting Meaning
PRODUCTION_MODE true (the default) keeps logs quiet: the web server runs in release mode and the database logs only warnings and errors. false logs every database query and request detail, for debugging. Updates keep your setting.
LOG_LEVEL debug logs every database query. Default: warnings and errors only.
CORS_ALLOWED_ORIGINS Comma-separated origins allowed to call the API from a browser.
NGINX_ROUTES_DIR Where app routes are written. Default /etc/nginx/asdl-hub.d.
ACME_WEBROOT Folder used for certificate challenges. Default /var/www/asdl-acme.
CERT_HELPER Script the Hub runs (via sudo) to get certificates. Default /usr/local/lib/asdl-hub/issue-cert.