mirror of
https://github.com/Dasemu/Maskarr.git
synced 2026-11-26 23:36:13 +00:00
chore: bootstrap Claude setup
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f0a0423be
commit
4ed8ab0a0c
10 files changed
+428
-289
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# CLAUDE.md
|
||||
|
||||
## Overview
|
||||
Maskarr: a single-file Python HTTP proxy that rewrites User-Agent and headers so *arr stack apps (Prowlarr, Jackett) can reach private trackers. Includes a web UI for managing trackers and a JSON REST API.
|
||||
|
||||
## Commands
|
||||
- Install: `pip install -r requirements.txt`
|
||||
- Run (dev): `python3 maskarr.py`
|
||||
- Quick check (no test suite exists yet): `python3 -m py_compile maskarr.py`
|
||||
- Docker build: `docker build -t maskarr .`
|
||||
- Docker run: `docker-compose up -d`
|
||||
|
||||
## Architecture
|
||||
Everything lives in `maskarr.py`: an `http.server`-based proxy that forwards requests to the configured tracker domain with a rewritten User-Agent/headers, plus a small web UI and `/api/trackers` REST endpoints. Configuration persists to `maskarr_config.json` (path overridable via `CONFIG_PATH`). See `docs/usage.md` and `docs/deployment.md`.
|
||||
|
||||
## Conventions
|
||||
- Only `CONFIG_PATH` is read from the environment (`maskarr.py`); everything else lives in `maskarr_config.json`.
|
||||
- Keep `.env.example` limited to variable names actually read from the environment.
|
||||
|
||||
## Workflow quirks
|
||||
- No linter/formatter (ruff/black/flake8) or test suite (pytest) is configured yet. The only available check is a syntax compile (`py_compile`); see LESSONS.md.
|
||||
- No `development` branch exists yet; CI and the version workflow reference it per the standard shape, but they won't trigger until it's created.
|
||||
|
||||
## Deployment
|
||||
Docker image published to GHCR and the private Gitea registry on push to `main`/tags (`.github/workflows/docker-publish.yml`, `.gitea/workflows/docker-publish.yml`). See `docs/deployment.md` for systemd and Docker instructions.
|
||||
|
||||
## Gotchas
|
||||
- `maskarr_config.json` is tracked as an empty template; don't commit it populated with real tracker credentials/cookies.
|
||||
- This proxy is meant for local/private-network use only (see Security notes in `docs/usage.md`).
|
||||
Reference in new issue
Block a user