Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

nix: add zoekt search url configuration to knotmirror

Signed-off-by: Seongmin Lee <git@boltless.me>

authored by

Seongmin Lee and committed by
Anirudh Oppiliappan
(Jul 3, 2026, 3:49 PM +0530) 19faeb52 cf85d359

+9 -2
+1 -1
docker-compose.yml
··· 264 264 MIRROR_KNOT_USE_SSL: "true" 265 265 MIRROR_KNOT_SSRF: "true" 266 266 MIRROR_RESYNC_PARALLELISM: "4" 267 - MIRROR_SEARCH_ZOEKT_URL: https://zoekt.tngl.boltless.dev 267 + MIRROR_SEARCH_ZOEKT_URL: https://zoekt.tngl.boltless.dev/indexserver 268 268 volumes: 269 269 - knotmirror-data:/data 270 270 - ./localinfra/certs/root.crt:/usr/local/share/ca-certificates/caddy.crt:ro
+1 -1
knotmirror/resyncer.go
··· 426 426 return fmt.Errorf("marshaling index request: %w", err) 427 427 } 428 428 429 - endpoint := r.cfg.Search.ZoektUrl + "/indexserver/admin/enqueueIndex" 429 + endpoint := r.cfg.Search.ZoektUrl + "/admin/enqueueIndex" 430 430 req, err := http.NewRequestWithContext(ctx, http.MethodPost, endpoint, bytes.NewReader(body)) 431 431 if err != nil { 432 432 return err
+7
nix/modules/knotmirror.nix
··· 84 84 description = "enable SSRF protection for knots"; 85 85 }; 86 86 87 + zoektUrl = mkOption { 88 + type = types.str; 89 + example = "https://zoekt.tngl.boltless.dev/indexserver"; 90 + description = "zoekt-tnglserver url"; 91 + }; 92 + 87 93 tap = { 88 94 port = mkOption { 89 95 type = types.port; ··· 158 164 "MIRROR_METRICS_LISTEN=${cfg.metricsListenAddr}" 159 165 "MIRROR_ADMIN_LISTEN=${cfg.adminListenAddr}" 160 166 "MIRROR_SLURPER_CONCURRENCY=4" 167 + "MIRROR_SEARCH_ZOEKT_URL=${cfg.zoektUrl}" 161 168 ]; 162 169 ExecStart = "${getExe cfg.package} serve"; 163 170 Restart = "always";