subidx/scripts/start.sh
lakshit verma b56447f067
Add web dashboard, live feed, and deployment configs
- Embedded Svelte dashboard: search, virtualized results, filter, sort,
  dates, export, rate budget meter, streaming NDJSON search
- Live feed: SSE /v1/feed, delta polling /v1/watch, x-max-seq cursor,
  ingest hook and subscriber hub, store mutex fix so reads never starve
  behind ingest backlog
- gzip middleware, /v1/stats with cache and bounded top-k
- CORS allow-list flag for split frontend deployments
- Dockerfile + render.yaml + vercel.json, serve gains -no-drain
2026-08-26 21:24:26 +05:30

12 lines
448 B
Bash
Executable file

#!/bin/sh
# subidx on Render (and plain docker). PORT and RENDER_EXTERNAL_HOSTNAME
# are provided by Render automatically; the rest have safe defaults.
set -e
exec subidx serve \
-store "${STORE_DIR:-/var/data/subidx}" \
-addr ":${PORT:-8080}" \
-no-drain \
-trusted-proxy-hops "${TRUSTED_HOPS:-1}" \
-rate-limit "${RATE_LIMIT:-2000}" \
-allowed-hosts "${ALLOWED_HOSTS:-$RENDER_EXTERNAL_HOSTNAME}" \
-cors-origins "${CORS_ORIGINS:-}"