Skip to content

flaresolverr: Module, and an indexer proxy of Prowlarr - #25

Merged
andsens merged 1 commit into
mainfrom
flaresolverr
Nov 19, 2026
Merged

andsens merged 1 commit into
mainfrom
flaresolverr

Conversation

@andsens

@andsens andsens commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

A flaresolverr module (FlareSolverr 3.5.2 from nixpkgs, Chromium under Xvfb with HOME on an emptyDir /tmp), its log parser, and homelab.flaresolverr.integrations.prowlarr:

  • The job creates the Prowlarr tag flaresolverr (tag) and adds or updates the FlareSolverr indexer proxy (POST/PUT /api/v1/indexerproxy, FlareSolverrSettings with host and requestTimeout) with that tag. Tags given in the UI stay.
  • Prowlarr sends an indexer through a proxy only when they share a tag (IndexerHttpClient.GetProxies at v2.7.0.5723), so an indexer behind Cloudflare gets the tag in the UI.
  • Prowlarr may reach flaresolverr.

nix flake check passes (log examples included). FlareSolverr ran locally as a user without root: /health ok, a request.get answered 200.

🤖 Generated with Claude Code

FlareSolverr solves Cloudflare challenges in Chromium. A job adds it to Prowlarr as an indexer proxy with the tag flaresolverr, which an indexer behind Cloudflare gets in the UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andsens
andsens merged commit fc6d615 into main Nov 19, 2026
2 checks passed
@andsens
andsens deleted the flaresolverr branch November 19, 2026 06:46
andsens added a commit to nixos-homelab/monitoring that referenced this pull request Nov 19, 2026
… a taken one (#42)

* logs: Pick the check's ports below the ephemeral range, start over on a taken one

free_port() bound port 0, closed the socket and returned the number, so
every port came from the kernel's ephemeral range, where Loki's and
Alloy's own outgoing connections take their local ports between the
pick and the bind. In CI of nixos-homelab/media#25 Alloy failed with
"bind: address already in use" that way.

free_ports() now picks all seven ports at once from below
ip_local_port_range, holding each socket until all are picked, so they
are distinct and out of reach of ephemeral binds. Should a port still be
taken, Loki or Alloy exits with "address already in use" and the check
starts both over on new ports, up to three times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* logs: The LogQL check's ports too

queries.py picked Loki's two ports with the same free_port() as the logs
check had: now free_ports() from below the ephemeral range, and a start
over on new ports when Loki exits with "address already in use".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant