From be833e189aed1a7a720b454c3b747f6513fb4c42 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 24 Aug 2025 12:02:50 +0200 Subject: [PATCH] Add per-log listen statement --- tesseract/genconf/env.go | 5 +++++ tesseract/genconf/main.go | 1 + 2 files changed, 6 insertions(+) diff --git a/tesseract/genconf/env.go b/tesseract/genconf/env.go index fcef8b8..4fa888f 100644 --- a/tesseract/genconf/env.go +++ b/tesseract/genconf/env.go @@ -39,6 +39,11 @@ func generateEnv(yamlFile string) { fmt.Sprintf("--roots_pem_file=%s", rootsPemPath), } + // Add http_endpoint if Listen is specified + if logEntry.Listen != "" { + args = append(args, fmt.Sprintf("--http_endpoint=%s", logEntry.Listen)) + } + tesseractArgs := strings.Join(args, " ") envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\n", tesseractArgs) diff --git a/tesseract/genconf/main.go b/tesseract/genconf/main.go index aaba768..3ed64be 100644 --- a/tesseract/genconf/main.go +++ b/tesseract/genconf/main.go @@ -29,6 +29,7 @@ type Log struct { Secret string `yaml:"secret"` Cache string `yaml:"cache"` LocalDirectory string `yaml:"localdirectory"` + Listen string `yaml:"listen"` NotAfterStart time.Time `yaml:"notafterstart"` NotAfterLimit time.Time `yaml:"notafterlimit"` // Computed fields