Skip to main content
Documentation

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:

/etc/nexigon/agent.toml
hub-url = "https://eu.nexigon.cloud"
token = "deployment_..."
fingerprint-script = "/usr/libexec/nexigon/nexigon-device-fingerprint"

Credentials

SettingDefaultDescription
hub-urlNoneNexigon Hub URL for static credentials. Set together with token.
tokenNoneDeployment token for static credentials. Set together with hub-url.
fingerprint-scriptRequiredExecutable whose output identifies the device. See Device Fingerprints.
data-path/var/lib/nexigon/agentDirectory for persistent data, including saved credentials.
ssl-cert/etc/nexigon/agent/ssl/cert.pemDevice certificate. Created if missing.
ssl-key/etc/nexigon/agent/ssl/key.pemPrivate 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.

SettingDefaultDescription
enabledfalseEnable the endpoint while the agent has no credentials.
bind0.0.0.0:6947Address and port of the endpoint.
endpointsEU and US Nexigon Cloud HTTPS URLsNexigon Hub instances tried in order for a token without a domain.
device-nameNoneDisplay name of the device created during pairing.

Signer

[signer] uses a private key held by hardware instead of ssl-key. See Hardware-Bound Keys.

SettingDefaultDescription
scriptRequiredSigner script.
timeout-secs10Seconds after which a signer operation fails. At least 1.

Connection

[connection] controls the connection to Nexigon Hub. See Reconnection.

SettingDefaultDescription
connect-timeout-secs30Seconds allowed for connecting and identifying the device. At least 1.
reconnect.initial-delay-secs30Upper bound of the random delay before the first reconnection attempt. At least 1.
reconnect.max-delay-secs600Upper bound of any random delay. At least initial-delay-secs.
reconnect.stable-after-secs60Seconds 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.

SettingDefaultDescription
dangerous-allow-plaintextfalseAllow credentials over plaintext HTTP and WebSocket.
dangerous-accept-invalid-certificatesfalseAccept 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.

SettingDefaultDescription
nameRequiredName shown in the web interface.
protocolRequiredhttp.
portRequiredPort on which the service accepts connections on 127.0.0.1.
pathNoneURL path prefix of the service. Does not restrict forwarding.

Forwarding

SettingDefaultDescription
enabledfalsePermit the ports below in addition to exported ports.
allowed-tcp-ports[]Permitted ports from 1 through 65535.
allow-all-portsfalsePermit every port.

Terminal

SettingDefaultDescription
enabledfalseEnable the browser terminal.
userrootAccount that runs terminal sessions by default.
shellUser’s login shellShell of terminal sessions. Falls back to /bin/sh.
allowed-usersuser onlyAccounts that terminal sessions may run as.

Multiplex

[multiplex] limits the channels of the connection. See Forwarding Capacity.

SettingDefaultDescription
max-channels512Maximum open channels, from 32 through 4096.
reserved-channels32Channels withheld from the advertised forwarding capacity. Positive and below max-channels.
max-channel-requests-per-second2048Maximum 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.

SettingDefaultDescription
commands.enabledfalseEnable custom commands.
commands.directory/etc/nexigon/agent/commandsDirectory of custom command definitions.
operations.enabledfalseFetch steps of fleet operations, a preview feature.
operations.poll-interval-secs60Seconds 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.

SettingDefaultDescription
enabledfalseEnable the integration.
pathNoneDefault release as <repository>/<package>/<version>. The dev.nexigon.ota.config property overrides it.
assetNoneDefault bundle filename, instead of <system>.rugixb or <system>.raucb.
check-interval-secs14400Seconds between update checks.
check-jitter-secs300Maximum random delay of scheduled checks in seconds.
use-bundle-hashfalseRugix 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.

SettingDefaultDescription
enabledfalseEnable the integration.
archAgent architectureArchitecture that selects the bundles the device installs, such as aarch64.
check-interval-secs14400Seconds between checks.
check-jitter-secs300Maximum random delay of scheduled checks in seconds.
use-bundle-hashfalseVerify bundles with rugix.bundleHash from the asset metadata when present.
gc.keep1Previously running versions to keep for each app, unless the gc policy sets it.

Local API and Telemetry

SettingDefaultDescription
local-api.enabledtrueAccept requests of local commands and applications on a Unix socket.
local-api.socket-path/run/nexigon/agent/control/socket.sockPath of the socket.
telemetry.system-infotruePublish system information in the dev.nexigon.system.info property periodically.