- Docker 与 Docker Compose;
- 一个已运行、支持 JSON 输出的 SearXNG;
- SearXNG 与本服务可以通过同一 Docker 网络或可路由地址通信。
git clone https://github.com/reallhw/web-extract-api.git
cd web-extract-api
cp .env.example .env
sed -i "s/REPLACE_WITH_A_NEW_64_HEX_SECRET/$(openssl rand -hex 32)/" .env
docker network create hermes-web 2>/dev/null || true
docker network connect hermes-web searxng 2>/dev/null || true
docker compose config
docker compose build
docker compose up -d
docker compose ps如果你的网络名或 SearXNG 地址不同,修改 .env:
WEB_EXTRACT_NETWORK=hermes-web
SEARXNG_URL=http://searxng:8080export WEB_EXTRACT_API_URL=http://127.0.0.1:28900
export WEB_EXTRACT_API_KEY="$(sed -n 's/^WEB_EXTRACT_API_KEY=//p' .env)"
bash scripts/verify.sh局域网访问必须显式设置 WEB_EXTRACT_BIND_IP,并配合防火墙和鉴权。
- Docker and Docker Compose;
- a running SearXNG instance with JSON output enabled;
- network connectivity between SearXNG and this service.
git clone https://github.com/reallhw/web-extract-api.git
cd web-extract-api
cp .env.example .env
sed -i "s/REPLACE_WITH_A_NEW_64_HEX_SECRET/$(openssl rand -hex 32)/" .env
docker network create hermes-web 2>/dev/null || true
docker network connect hermes-web searxng 2>/dev/null || true
docker compose config
docker compose build
docker compose up -d
docker compose psAdjust these values when your network or SearXNG endpoint differs:
WEB_EXTRACT_NETWORK=hermes-web
SEARXNG_URL=http://searxng:8080export WEB_EXTRACT_API_URL=http://127.0.0.1:28900
export WEB_EXTRACT_API_KEY="$(sed -n 's/^WEB_EXTRACT_API_KEY=//p' .env)"
bash scripts/verify.shLAN exposure must be explicitly enabled with WEB_EXTRACT_BIND_IP and should
be protected by authentication and firewall rules.