mirror of
https://github.com/rekryt/iplist.git
synced 2026-08-28 04:31:46 +00:00
New output formats: - `format=geosite` — v2ray/xray geosite.dat, built natively by GeositeDatWriter (domain-list-community rejects 406 of 409 portal names, so an external generator was not an option); `domaintype=suffix|full|keyword|regex`. - `format=singbox` — sing-box rule-set source JSON, served inline; it becomes an attachment only with `?filesave=1`. - `format=srs` — the same rule-set compiled to binary by the sing-box binary (SINGBOX_PATH); without the binary the format returns a plain-text error. - `format=geoip` — same contract, now built in PHP by GeoipDatWriter. `SYS_GEOIP_NATIVE=false` keeps the v2fly binary path for one release. Infrastructure: - src/Infrastructure/Codec: ProtobufWriter, GeoipDatWriter, GeositeDatWriter, SingboxRuleSetBuilder, EntryPayload, DatEncoder. Writers are pure functions — no I/O, no Amp, no singletons — so the same class runs inline and inside an amphp/parallel worker. Above SYS_ENCODE_WORKER_THRESHOLD encoding goes to a worker, below it yields to the event loop every 32 lists. - TempWorkspace: one temp dir per request under storage/tmp, removed in a finally, plus a sweeper for dirs orphaned by SIGKILL (SYS_TMP_TTL, SYS_TMP_SWEEP_INTERVAL). Replaces the leaking geoip/input + geoip/output. - ProcessRunner: the single place that starts external binaries — command as an array, both pipes buffered concurrently (not reading them deadlocked a chatty child), exit code and stderr surfaced in the error body. Fixes: - wildcard domain collapse no longer emits a bare "." for scraped junk like `DNSdumpster..`; such entries are dropped by SiteFactory::normalizeDomains on ingestion, and a matching guard sits in Site::getDomains. - geoip.dat was served as text/plain; both engines now use application/octet-stream. - HttpClient in AsyncTest is shared across the run: per-test clients kept their keep-alive pools alive and starved the Windows StreamSelectDriver by the end of a full run. UI, docs, build: - Form.vue: new formats, domaintype and rule-set version selects, wildcard on by default, filesave hidden for attachment-only formats; public/ rebuilt. - IndexTemplate.php (no-JS form on /index) caught up with the frontend. - README.md, README.en.md, CLAUDE.md, ROADMAP.md, .env.example. - Dockerfile: sing-box from the release tarball (-glibc), v2fly/geoip built on golang:1.25 with a pinned tag; the apt Go 1.19 stage was the broken build. https://github.com/itdoginfo/podkop/issues/418
23 lines
No EOL
683 B
Text
23 lines
No EOL
683 B
Text
COMPOSE_PROJECT_NAME="iplist"
|
|
STORAGE_SAVE_INTERVAL="120"
|
|
SYS_DNS_RESOLVE_IP4="true"
|
|
SYS_DNS_RESOLVE_IP6="true"
|
|
SYS_DNS_RESOLVE_CHUNK_SIZE="10"
|
|
SYS_DNS_RESOLVE_DELAY="100"
|
|
SYS_IP6_SUBNET_PREFIX_CAP="64"
|
|
SYS_REPLACE_ESCALATE_IPS="true"
|
|
SYS_REPLACE_AGGREGATE_SUBNETS="false"
|
|
SYS_REPLACE_COLLAPSE_THRESHOLD_IP4_24="0"
|
|
SYS_REPLACE_COLLAPSE_THRESHOLD_IP4_16="0"
|
|
SYS_REPLACE_COLLAPSE_THRESHOLD_IP6_64="0"
|
|
SYS_REPLACE_COLLAPSE_THRESHOLD_IP6_32="0"
|
|
SYS_MEMORY_LIMIT="1024M"
|
|
SYS_TIMEZONE="Europe/Moscow"
|
|
SYS_TMP_PATH=""
|
|
SYS_TMP_TTL="900"
|
|
SYS_TMP_SWEEP_INTERVAL="600"
|
|
SYS_ENCODE_WORKER_THRESHOLD="20000"
|
|
SYS_GEOIP_NATIVE="true"
|
|
GEOIP_PATH=""
|
|
SINGBOX_PATH="/usr/local/bin/sing-box"
|
|
DEBUG="true" |