MyNixOS website logo
option

services.gradient.worker.peersFile

File of peer tokens for challenge-response authentication with the server, with peer_id:token per line and # starting a comment.

<uuid>:<token>
*:<token>

Use peer ID * to match any UUID in the server's challenge. Tokens are 48 byte random secrets, for example from openssl rand -base64 48. Register them via the API through POST /api/v1/projects/{project}/workers. Set it to null for open mode without authentication; avoid that in a production setup.

Declarations
Type
null or absolute path
Default
null