Add doc comment about changing admin endpoint

This commit is contained in:
Matthew Holt 2023-05-09 20:05:27 -06:00
parent 571fc034d3
commit 12b2f22092
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -71,6 +71,11 @@ type AdminConfig struct {
// parsed by Caddy. Accepts placeholders. // parsed by Caddy. Accepts placeholders.
// Default: the value of the `CADDY_ADMIN` environment variable, // Default: the value of the `CADDY_ADMIN` environment variable,
// or `localhost:2019` otherwise. // or `localhost:2019` otherwise.
//
// Remember: When changing this value through a config reload,
// be sure to use the `--address` CLI flag to specify the current
// admin address if the currently-running admin endpoint is not
// the default address.
Listen string `json:"listen,omitempty"` Listen string `json:"listen,omitempty"`
// If true, CORS headers will be emitted, and requests to the // If true, CORS headers will be emitted, and requests to the