fixing small things
This commit is contained in:
@@ -17,7 +17,6 @@ The app is intentionally small: one Go binary serves both the API and embedded f
|
||||
- Static assets: embedded with Go `embed`
|
||||
- Runtime port: `8080`
|
||||
- Docker build: `golang:1.24-alpine` builder, `alpine:latest` runtime
|
||||
- Default Transmission RPC target: `http://192.168.20.22:3210/transmission/rpc`
|
||||
- Runtime RPC configuration: `TRANSMISSION_URL`, `TRANSMISSION_RPC_USERNAME`, and `TRANSMISSION_RPC_PASSWORD`
|
||||
|
||||
## Repository Organization
|
||||
@@ -28,6 +27,7 @@ The app is intentionally small: one Go binary serves both the API and embedded f
|
||||
- `web/styles.css`: all styling. Owns dark theme variables, layout, cards, badges, progress bars, action buttons, empty/error states, and responsive rules.
|
||||
- `go.mod`: Go module declaration.
|
||||
- `Dockerfile`: multi-stage production build.
|
||||
- `README.md`: public project documentation, configuration guide, and deployment instructions.
|
||||
- `AGENTS.md`: quick-start guide for coding agents. It must point agents back to this file.
|
||||
|
||||
## Backend Architecture
|
||||
@@ -46,7 +46,7 @@ API errors return JSON with an `error` string. Invalid torrent action methods sh
|
||||
|
||||
## Transmission RPC Model
|
||||
|
||||
The RPC endpoint defaults to `http://192.168.20.22:3210/transmission/rpc` and can be overridden with `TRANSMISSION_URL`. `TRANSMISSION_RPC_USERNAME` and `TRANSMISSION_RPC_PASSWORD` are optional; unset, empty, or literal `null` values mean no credential value. When either credential has a value, the backend sends HTTP Basic Auth on RPC requests.
|
||||
The RPC endpoint is configured via `TRANSMISSION_URL` (which must be set). `TRANSMISSION_RPC_USERNAME` and `TRANSMISSION_RPC_PASSWORD` are optional; unset, empty, or literal `null` values mean no credential value. When either credential has a value, the backend sends HTTP Basic Auth on RPC requests.
|
||||
|
||||
Transmission usually rejects the first request or an expired session with HTTP `409` and a fresh `X-Transmission-Session-Id` header. Correct behavior is to drain and close the response body, cache the new session ID, and retry the same JSON request once.
|
||||
|
||||
@@ -122,5 +122,3 @@ node --check web\app.js
|
||||
git diff --check
|
||||
docker build .
|
||||
```
|
||||
|
||||
Known local environment note from July 8, 2026: `go` and `gofmt` were not available in PATH, and Docker was configured to a remote builder with an SSH host-key mismatch. If that remains true, report the limitation instead of changing SSH trust settings automatically.
|
||||
|
||||
Reference in New Issue
Block a user