true; anything else, including 1 and TRUE, counts as false.
This page covers NervesHub main (2.5.4 and later). It lists only the settings that change what a developer can do. The complete list, including clustering, storage, TLS certificates and observability, is in the upstream runtime configuration reference.
Minimum configuration
A single node that serves both the web UI and devices needs these variables:- A TLS key and certificate for the device endpoint. Set
DEVICE_SSL_KEYandDEVICE_SSL_CERT(base64 encoded), or put files at the pathsDEVICE_SSL_KEYFILEandDEVICE_SSL_CERTFILEname. The device endpoint terminates mutual TLS itself, so it cannot sit behind a proxy that terminates TLS for it. - Somewhere to store firmware. Set
FIRMWARE_UPLOAD_PATHto a persistent directory for the defaultlocalbackend, or setFIRMWARE_UPLOAD_BACKEND=S3with theS3_*variables.
What works with only the minimum
- Devices connect with certificates over TLS 1.2.
- fwup firmware, archives, deployment groups, the remote console and support scripts.
- The Health, Geo, Alarms, Local Shell and Network Identity extensions.
- Current metric values, which devices report through the Health extension.
- Device health status, judged against fixed thresholds instead of your health profiles. See ClickHouse.
- Webhooks to public addresses.
- The API.
- Accounts for people with an invite. No email is sent.
Features that need a setting
DEVICE_SHARED_SECRETS_ENABLED, CLICKHOUSE_URL, SIGN_UP_METHODS and the SMTP_* variables are only read in a production release. A development instance started with mix phx.server takes those settings from config/dev.exs.Shared secret authentication
SetDEVICE_SHARED_SECRETS_ENABLED=true to let devices authenticate with a product or device shared secret instead of a certificate.
Without it:
- A device that connects with a shared secret is refused.
- The Shared secrets card in product settings reads “Shared secret authentication hasn’t been turned on for this platform. Ask whoever runs it.” and has no Create secret button.
- The Add device dialog only offers the certificate option.
- The device shared secret API answers 422 with “Device shared secrets are not enabled on this platform”.
ClickHouse
SetCLICKHOUSE_URL to connect NervesHub to a ClickHouse database. NervesHub stores high-volume device data there: metric history, logs, error reports, connection history, update history and the device message log.
Without it:
- The Logging, Error reports and Metrics extensions are not offered to devices.
- The device page’s Logs, Errors and Data History tabs show “Analytics aren’t enabled for your platform.”
- The health tab shows current metric values but no charts.
- Product Insights shows fleet composition but no trends.
- Health profiles are not evaluated. A device’s health status comes from fixed thresholds applied to its latest health report.
- The device logs and metrics API endpoints answer 501.
Secrets encryption key
SetSECRETS_ENCRYPTION_KEY to 32 random bytes, base64 encoded:
- Two-factor authentication (NervesHub 2.5.4) is not offered. The account’s two-factor page reads “Two-factor authentication needs this server to have a key for encrypting secrets.” An organization cannot require it of its members.
- Teams and Discord channels are still offered on the organization’s Integrations page. Saving a channel raises an error, and no channel is stored. Set the key before anyone uses these integrations.
- Slack cannot be configured. A production node refuses to boot when
SLACK_CLIENT_IDis set and the key is not.
Slack
Slack needs a Slack app that belongs to your instance, and these variables:
The integration is on when the client ID and client secret are set, along with the signing secret, the app token, or both. Without that, Slack does not appear on the organization’s Integrations page.
Create a Slack app for your instance walks through the setup. Developer page: Slack.
Firmware formats
fwup firmware is always accepted. Each other format has its own switch, off by default:
Without the variable, uploads of that format are not recognised and no product can opt in. With it, each product still has to accept the format in its settings, under Firmware.
fwup delta updates need
xdelta3 on the server. The official container image includes fwup, xdelta3, detools and openssl. If you build your own image, install them.
Developer pages: ESP-IDF, AtomVM, RAUC, Delta updates.
Webhooks to private addresses
By default a webhook can only deliver to public addresses. A URL with a literal private address is refused when it is saved. A host name is resolved at delivery and refused if any address it resolves to is private. SetWEBHOOKS_ALLOW_PRIVATE_DESTINATIONS=true to allow loopback, private, link-local and other non-public addresses. You need this when your webhook receivers are on the instance’s own network.
Developer page: Webhooks.
TLS session resumption
By default the device endpoint only accepts TLS 1.2. SetDEVICE_ENABLE_TLS_13=true to accept TLS 1.3 as well. The endpoint then also issues TLS 1.3 session tickets, so a reconnecting device can resume its session instead of repeating the full handshake.
By default each node makes its own ticket key, so a device only resumes on the node that issued its ticket, and not after that node restarts. To let any node resume any ticket, set DEVICE_TLS_SESSION_TICKET_SEED to the same value on every device node. It must be at least 64 bytes; mix phx.gen.secret generates one.
Developer page: Transport.
Email and sign-up
SMTP_SERVER, SMTP_PORT, SMTP_USERNAME and SMTP_PASSWORD to send email. Setting SMTP_SERVER makes the other three required. Without SMTP_SERVER, no email is sent.
FROM_EMAIL (default no-reply@nerves-hub.org) and EMAIL_SENDER (default NervesHub) set who the mail comes from.
Sign-up
SIGN_UP_METHODS (NervesHub 2.5.3) is a comma-separated list of the ways anyone can create an account:
Someone with a pending invite can always create an account, whatever this is set to. An unknown value stops the node from booting.
Setting
GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET turns on Google sign-in for existing accounts. It creates accounts only when SIGN_UP_METHODS includes google or the address has a pending invite.
OPEN_FOR_REGISTRATIONS=true is the older setting. It is only read when SIGN_UP_METHODS is unset, and means password, plus google when GOOGLE_CLIENT_ID is set.
Device location map
SetMAPBOX_ACCESS_TOKEN to show a map of the device’s location on the device page. Without it, the map is left out, even when the Geo extension is on for the product and the device.
Developer page: Geo extension.
Iroh endpoints
SetORG_IROH_ENDPOINTS_UI_ENABLED=true to add an Iroh endpoints page to each organization’s settings. Without it the link is hidden and the page answers as not found.
ORG_IROH_ENDPOINTS_INFO_URL adds a link on that page to your own documentation about your relays. ORG_IROH_ENDPOINTS_INFO_LABEL sets the link’s text, which defaults to the URL’s host.
Developer pages: Network identity extension, Console over iroh.
Defaults that shape what developers see
These settings set a feature’s pace or its limits for everyone on the instance. Developer pages: Health extension, Geo extension, Audit log, Rollout controls, Connecting devices.Report intervals
Retention
HEALTH_CHECK_DAYS_TO_RETAIN and EXTENSIONS_LOGGING_DAYS_TO_KEEP are still read at boot, but no code on main uses either value. Metric history and device logs follow the ClickHouse table TTLs.
Limits
Other defaults
Upgrade notes that affect these features
- 2.5.0 drops device health history and the PostgreSQL device metrics table. Metric history starts empty in ClickHouse. Rolling back to 2.4.0 afterwards is not supported.
- 2.5.1 runs the container image as uid 65532 instead of root, and no longer sets a default
SECRET_KEY_BASE. Either can stop a node from booting. A node on the defaultDEVICE_PORTof 443 needs a container runtime that allows unprivileged low ports, or a port of 1024 or above mapped from 443. - 2.5.3 adds
SIGN_UP_METHODS. WithGOOGLE_CLIENT_IDset and neitherSIGN_UP_METHODSnorOPEN_FOR_REGISTRATIONSset, Google sign-in only creates accounts for people with a pending invite. - 2.5.4 adds two-factor authentication, which needs
SECRETS_ENCRYPTION_KEY. Do not roll back to 2.5.3 once anyone holds a custom role.

