Add per-log listen statement

This commit is contained in:
Pim van Pelt
2025-08-24 12:02:50 +02:00
parent 0b12cbca62
commit be833e189a
2 changed files with 6 additions and 0 deletions

View File

@@ -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)