Add per-log listen statement
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user