socker backend support

This commit is contained in:
Mateusz Gruszczyński
2026-05-31 09:56:54 +02:00
parent 50c7bba9e5
commit 0612b5129d
8 changed files with 286 additions and 59 deletions
+17
View File
@@ -282,3 +282,20 @@ Notes:
- Offline frontend libraries are the default. Use `--libs online` only when CDN loading is preferred.
- Local auth is configured directly by the installer. External auth providers require a trusted reverse proxy setup; see `auth.md`.
- Reverse proxy mode enables `PYTORRENT_PROXY_FIX_ENABLE`, secure cookies and CORS/API origins for the HTTPS domains plus localhost/local IP origins.
### rTorrent SCGI over Unix socket
Stack installers use TCP SCGI by default (`scgi://127.0.0.1:5000`). To configure rTorrent with a Unix socket and expose it to pyTorrent through `rtorrent-scgi-proxy`, run one of:
```bash
sudo bash scripts/install_stack.sh --scgi-unix-socket
sudo bash scripts/install_stack.sh --rtorrent-socket /run/rtorrent/rtorrent.sock
```
Equivalent environment variables:
```bash
RTORRENT_SCGI_BACKEND=unix RTORRENT_SCGI_SOCKET=/run/rtorrent/rtorrent.sock sudo bash scripts/install_stack.sh
```
When socket mode is selected, the installer adds the proxy user to the rTorrent group and grants the proxy systemd unit supplementary group access so it can open the socket.