Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 2.09 KB

CONFIGURATION.md

File metadata and controls

46 lines (32 loc) · 2.09 KB

Configuration for Widebullet

A configuration file format for Widebullet is TOML.

A configuration for Widebullet has some sections. A example is here.

Global Section

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

Endpoints Section

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

About API

See SPEC.md about details for APIs.