@marcel91200 / caddy Mirror · read-only / commits / 12b2f220
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 03:00 UTC

Add doc comment about changing admin endpoint

Matthew Holt committed May 9, 2023 at 20:05 UTC 12b2f22092b4c4efaa9cb5a42870b0d21796f9c1
1 file changed +5
admin.go
+5
@@ -71,6 +71,11 @@ type AdminConfig struct {
71 // parsed by Caddy. Accepts placeholders.
72 // Default: the value of the `CADDY_ADMIN` environment variable,
73 // or `localhost:2019` otherwise.
74 + //
75 + // Remember: When changing this value through a config reload,
76 + // be sure to use the `--address` CLI flag to specify the current
77 + // admin address if the currently-running admin endpoint is not
78 + // the default address.
79 Listen string `json:"listen,omitempty"`
80
81 // If true, CORS headers will be emitted, and requests to the