mirror of
https://github.com/vee1e/subidx.git
synced 2026-09-01 17:57:13 +00:00
- 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
12 lines
448 B
Bash
Executable file
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:-}"
|