Configuration
Nexigon Agent reads its configuration from /etc/nexigon/agent.toml, or from
the file that the global --config option names. Relative paths in the file
are resolved from the file’s directory. The agent reads the file when it
starts, so restart it after a change.
A minimal configuration with static credentials:
hub-url = "https://eu.nexigon.cloud"
token = "deployment_..."
fingerprint-script = "/usr/libexec/nexigon/nexigon-device-fingerprint"Credentials
| Setting | Default | Description |
|---|---|---|
hub-url | None | Nexigon Hub URL for static credentials. Set together with token. |
token | None | Deployment token for static credentials. Set together with hub-url. |
fingerprint-script | Required | Executable whose output identifies the device. See Device Fingerprints. |
data-path | /var/lib/nexigon/agent | Directory for persistent data, including saved credentials. |
ssl-cert | /etc/nexigon/agent/ssl/cert.pem | Device certificate. Created if missing. |
ssl-key | /etc/nexigon/agent/ssl/key.pem | Private key of the device certificate. Created if missing. Not allowed together with [signer]. |
Without hub-url and token, the agent uses the credentials saved in
data-path. Identity and Credentials
explains how the agent uses these settings.
Provisioning
[provisioning] configures the local endpoint that accepts a provisioning
token while the agent has no credentials. See
Provisioning Mode.
| Setting | Default | Description |
|---|---|---|
enabled | false | Enable the endpoint while the agent has no credentials. |
bind | 0.0.0.0:6947 | Address and port of the endpoint. |
endpoints | EU and US Nexigon Cloud HTTPS URLs | Nexigon Hub instances tried in order for a token without a domain. |
device-name | None | Display name of the device created during pairing. |
Signer
[signer] uses a private key held by hardware instead of ssl-key. See
Hardware-Bound Keys.
| Setting | Default | Description |
|---|---|---|
script | Required | Signer script. |
timeout-secs | 10 | Seconds after which a signer operation fails. At least 1. |
Connection
[connection] controls the connection to Nexigon Hub. See
Reconnection.
| Setting | Default | Description |
|---|---|---|
connect-timeout-secs | 30 | Seconds allowed for connecting and identifying the device. At least 1. |
reconnect.initial-delay-secs | 30 | Upper bound of the random delay before the first reconnection attempt. At least 1. |
reconnect.max-delay-secs | 600 | Upper bound of any random delay. At least initial-delay-secs. |
reconnect.stable-after-secs | 60 | Seconds after which a connection counts as stable and resets the bound. |
Development Settings
These top-level settings weaken the security of the connection. Never set them on production devices.
| Setting | Default | Description |
|---|---|---|
dangerous-allow-plaintext | false | Allow credentials over plaintext HTTP and WebSocket. |
dangerous-accept-invalid-certificates | false | Accept invalid TLS certificates, which disables the authentication of Nexigon Hub. |
Remote Access
See Remote Access for the forwarding policy.
Exports
Each [[exports]] entry advertises an HTTP service and permits TCP forwarding
to its port.
| Setting | Default | Description |
|---|---|---|
name | Required | Name shown in the web interface. |
protocol | Required | http. |
port | Required | Port on which the service accepts connections on 127.0.0.1. |
path | None | URL path prefix of the service. Does not restrict forwarding. |
Forwarding
| Setting | Default | Description |
|---|---|---|
enabled | false | Permit the ports below in addition to exported ports. |
allowed-tcp-ports | [] | Permitted ports from 1 through 65535. |
allow-all-ports | false | Permit every port. |
Terminal
| Setting | Default | Description |
|---|---|---|
enabled | false | Enable the browser terminal. |
user | root | Account that runs terminal sessions by default. |
shell | User’s login shell | Shell of terminal sessions. Falls back to /bin/sh. |
allowed-users | user only | Accounts that terminal sessions may run as. |
Multiplex
[multiplex] limits the channels of the connection. See
Forwarding Capacity.
| Setting | Default | Description |
|---|---|---|
max-channels | 512 | Maximum open channels, from 32 through 4096. |
reserved-channels | 32 | Channels withheld from the advertised forwarding capacity. Positive and below max-channels. |
max-channel-requests-per-second | 2048 | Maximum channel-open requests per second, from 32 through 65536 and at least max-channels. The agent rejects further requests without disconnecting. |
Commands and Operations
See Device Commands. The integrations provide their built-in commands regardless of these settings.
| Setting | Default | Description |
|---|---|---|
commands.enabled | false | Enable custom commands. |
commands.directory | /etc/nexigon/agent/commands | Directory of custom command definitions. |
operations.enabled | false | Fetch steps of fleet operations, a preview feature. |
operations.poll-interval-secs | 60 | Seconds between polls while the device is idle. |
System Updates
[integrations.rugix.system-updates] enables system updates with Rugix Ctrl,
and [integrations.rauc.system-updates] with RAUC. Enable at most one. See
System Updates.
| Setting | Default | Description |
|---|---|---|
enabled | false | Enable the integration. |
path | None | Default release as <repository>/<package>/<version>. The dev.nexigon.ota.config property overrides it. |
asset | None | Default bundle filename, instead of <system>.rugixb or <system>.raucb. |
check-interval-secs | 14400 | Seconds between update checks. |
check-jitter-secs | 300 | Maximum random delay of scheduled checks in seconds. |
use-bundle-hash | false | Rugix Ctrl only. Verify bundles with rugix.bundleHash from the asset metadata when present. |
App Management
[integrations.rugix.apps] enables apps with Rugix Apps. It requires Rugix
Ctrl 1.4 or later. See Rugix Apps.
| Setting | Default | Description |
|---|---|---|
enabled | false | Enable the integration. |
arch | Agent architecture | Architecture that selects the bundles the device installs, such as aarch64. |
check-interval-secs | 14400 | Seconds between checks. |
check-jitter-secs | 300 | Maximum random delay of scheduled checks in seconds. |
use-bundle-hash | false | Verify bundles with rugix.bundleHash from the asset metadata when present. |
gc.keep | 1 | Previously running versions to keep for each app, unless the gc policy sets it. |
Local API and Telemetry
| Setting | Default | Description |
|---|---|---|
local-api.enabled | true | Accept requests of local commands and applications on a Unix socket. |
local-api.socket-path | /run/nexigon/agent/control/socket.sock | Path of the socket. |
telemetry.system-info | true | Publish system information in the dev.nexigon.system.info property periodically. |