Merge pull request #63697 from marsam/caddy-disable-telemetry
caddy: disable telemetry
This commit is contained in:
commit
ad6f4005b8
1 changed files with 9 additions and 3 deletions
|
@ -16,9 +16,15 @@ buildGoModule rec {
|
|||
};
|
||||
modSha256 = "0np0mbs0mrn8scqa0dgvi7ya1707b3883prdaf1whsqrcr71ig8q";
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w -X github.com/caddyserver/caddy/caddy/caddymain.gitTag=v${version}
|
||||
preBuild = ''
|
||||
cat << EOF > caddy/main.go
|
||||
package main
|
||||
import "github.com/caddyserver/caddy/caddy/caddymain"
|
||||
func main() {
|
||||
caddymain.EnableTelemetry = false
|
||||
caddymain.Run()
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue