Configuration
Configure the Exposr client.
Set server address
Before using exposr expose, you must configure the relay server address:
bash
exposr config set-server YOUR_SERVER_IPFor example:
bash
exposr config set-server 20.198.81.254The address is saved to ~/.exposr/config.json and used for all subsequent expose commands. You can override it per-run with --server-host.
Agent token
When you run exposr config set-server, a random agent token is generated and saved to:
text
~/.exposr/agent_token.txtThis token is sent with every control registration request. The server must be configured with the same token — it will reject connections with mismatched tokens.
Note
Copy the contents of
~/.exposr/agent_token.txt and use exposr server init-token PASTE_TOKEN_HERE on the relay server to complete the authentication setup.Configuration files
| File | Purpose |
|---|---|
| ~/.exposr/config.json | Server address and client settings |
| ~/.exposr/agent_token.txt | Agent authentication token |