A configuration file format for Widebullet is TOML.
A configuration for Widebullet has some sections. A example is here.
name | type | description | default | note |
---|---|---|---|---|
Port | string | port number or unix socket path | 29300 | e.g.)29300, unix:/tmp/wbt.sock -p option can overwrite |
LogLevel | string | log-level | error | |
Timeout | int | timeout for proxying request | 5 | unit is second |
MaxIdleConnsPerHost | int | maximum idle to keep per-host | 100 | |
DisableCompression | bool | delete Accept-Encoding: gzip in header |
false |
name | type | description | default | note |
---|---|---|---|---|
Name | string | Endpoint name | ||
Ep | string | Endpoint URL | ||
ProxySetHeaders | array of array | Headers appended on proxying request |
As a scheme, http and https are available for Ep.
Ep = "http://example.com"
# or
Ep = "https://example.com"
If a scheme is not specified, http is used.
Ep = "example.com"
- example.com
See SPEC.md about details for APIs.