Compare commits

2 Commits

Author SHA1 Message Date
Pim van Pelt
cbfa97d480 Add otelcol endpoint in .env file 2025-08-24 15:06:21 +02:00
Pim van Pelt
dc95d8d3bb Add gen-nginx to README 2025-08-24 15:06:09 +02:00
2 changed files with 7 additions and 2 deletions

View File

@@ -43,4 +43,9 @@ go run ./tesseract/genconf/main.go -c config.yaml gen-env
go run ./tesseract/genconf/main.go -c config.yaml gen-html go run ./tesseract/genconf/main.go -c config.yaml gen-html
``` ```
This generates `index.html`, `log.v3.json`, `.env`, and `roots.pem` files in each log's directory. 5. **Generate nginx configuration files:**
```bash
go run ./tesseract/genconf/main.go -c config.yaml gen-nginx
```
You can symlink the generated $monitoringprefix.conf files from `/etc/nginx/sites-enabled/`

View File

@@ -45,7 +45,7 @@ func generateEnv(yamlFile string) {
} }
tesseractArgs := strings.Join(args, " ") tesseractArgs := strings.Join(args, " ")
envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\n", tesseractArgs) envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\nOTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318\n", tesseractArgs)
err = os.WriteFile(envPath, []byte(envContent), 0644) err = os.WriteFile(envPath, []byte(envContent), 0644)
if err != nil { if err != nil {