readme: Add env var docs

This commit is contained in:
Matthew Holt 2020-07-16 16:07:50 -06:00
parent 1d18c5862c
commit e11b1988bd
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -109,6 +109,14 @@ Versions can be anything compatible with `go get`.
## Environment variables
Because the subcommands and flags are constrained to benefit rapid plugin prototyping, xcaddy does read some environment variables to take cues for its behavior and/or configuration when there is no room for flags.
- `CADDY_VERSION` sets the version of Caddy to build.
- `XCADDY_RACE_DETECTOR=1` enables the Go race detector in the build.
- `XCADDY_SKIP_CLEANUP=1` causes xcaddy to leave build artifacts on disk after exiting.
--- ---