Usage
Run in the foreground
Section titled “Run in the foreground”./leoxyThe CLI can select an alternate configuration file and data directory:
./leoxy --config ./config/leoxy_config.yaml --data-dir ./runtimeThe config path is resolved before the data directory becomes the process working directory. Relative paths in the selected configuration therefore resolve from that runtime directory.
Manage a background process
Section titled “Manage a background process”./leoxy start./leoxy restart./leoxy stopstart appends output to leoxy/log/leoxy.log and writes a PID file under leoxy/keys/. Use version to print the executable version:
./leoxy versionOn Windows, use the .exe binary name instead. The CLI also supports --help and -h for command help.
Send a request
Section titled “Send a request”With an HTTP upstream configured at /api, start Leoxy and send a request to its listener. For the sample listener on port 80:
curl http://127.0.0.1/apiThe request path must match a configured upstream path. For Docker deployment and networking, see the repository’s Docker guide.