Files
goyomi/.env.example
achmad 6d45576790 fix(httpclient): fix HTTP 0 status and restore FS session default
- Guard isCloudflareChallenge with directStatus >= 400 to prevent
  overriding status to 0 when no direct request was made
- When FS returns challenge page without a prior direct status,
  return an error instead of silently passing HTTP 0
- Restore default FS session ID to 'goyomi' — without a session,
  each request spawns a new Chrome, causing timeouts under load
- Add Message field to FlareSolverrResponse for better error reporting
- Document FLARESOLVERR_SESSION env var: shared session = fast after
  1st request, but serializes. Set empty for parallel (resource-heavy).
2026-05-14 13:54:11 +07:00

22 lines
609 B
Bash
Executable File

# PostgreSQL
POSTGRES_DB=goyomi
POSTGRES_USER=goyomi
POSTGRES_PASSWORD=goyomi
# App
DATABASE_URL=postgres://goyomi:goyomi@postgres:5432/goyomi?sslmode=disable
FLARESOLVERR_URL=http://flaresolverr:8191
FLARESOLVERR_LOG_LEVEL=info
FLARESOLVERR_PROXY=0
FLARESOLVERR_SESSION=goyomi # FS browser session ID; shared session = faster after 1st request. Set empty to disable (each request gets a fresh browser = parallel but resource-heavy)
ADDR=:3300
# Connection pool
DB_MAX_CONNS=10
DB_MIN_CONNS=2
# Cache TTLs (seconds)
MANGA_LIST_TTL_SECONDS=600
MANGA_DETAIL_TTL_SECONDS=3600
CHAPTER_LIST_TTL_SECONDS=600