Commit f0584190 authored by Matthew Holt's avatar Matthew Holt

Change UUID file with CADDY_UUID_FILE environment variable

parent 13268db5
...@@ -342,6 +342,9 @@ func detectContainer() bool { ...@@ -342,6 +342,9 @@ func detectContainer() bool {
// initTelemetry initializes the telemetry engine. // initTelemetry initializes the telemetry engine.
func initTelemetry() error { func initTelemetry() error {
uuidFilename := filepath.Join(caddy.AssetsPath(), "uuid") uuidFilename := filepath.Join(caddy.AssetsPath(), "uuid")
if customUUIDFile := os.Getenv("CADDY_UUID_FILE"); customUUIDFile != "" {
uuidFilename = customUUIDFile
}
newUUID := func() uuid.UUID { newUUID := func() uuid.UUID {
id := uuid.New() id := uuid.New()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment