Configuration
The NullBore client reads configuration from ~/.nullbore/config.toml.
Config file
# ~/.nullbore/config.toml
server = "https://tunnel.nullbore.com"
api_key = "nbk_your_api_key_here"
Setting values
nullbore config set server https://tunnel.nullbore.com
nullbore config set api-key nbk_your_api_key_here
Environment variables
Environment variables override config file values:
| Variable | Description |
|---|---|
NULLBORE_SERVER | Server URL |
NULLBORE_API_KEY | API key for authentication |
CLI flags
CLI flags override both config file and environment variables:
nullbore open --port 3000 --server https://my-server.com --api-key nbk_xxx
Precedence
CLI flags > Environment variables > Config file > Defaults
Defaults
| Setting | Default |
|---|---|
server | https://tunnel.nullbore.com |
ttl | 1h |
idle | false |