mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
Standardize examples and remove unsupported software references
+2
-11
@@ -60,11 +60,7 @@ schedule2 = scgi_permission,0,0,"execute.nothrow=chmod,\"g+w,o=\",/home/user/rto
|
||||
|
||||
### Apache
|
||||
|
||||
**httpd.conf (2.2)**:
|
||||
```ini
|
||||
SCGIMount /RPC2 socket_path <TODO: Check syntax to mount Unix sockets>
|
||||
```
|
||||
**httpd.conf (2.4)**:
|
||||
**httpd.conf**:
|
||||
```ini
|
||||
ProxyPass /RPC2 scgi://localhost:9999 # SCGI network port
|
||||
ProxyPass /RPC2 unix:///home/user/rtorrent/rpc.socket|scgi://localhost/ # SCGI Unix socket (2.4.7+)
|
||||
@@ -90,15 +86,10 @@ scgi.server = (
|
||||
|
||||
### Nginx:
|
||||
|
||||
*Recent versions of nginx support SCGI by default*
|
||||
|
||||
**nginx.conf**:
|
||||
|
||||
|
||||
```ini
|
||||
# This webserver is actually in a container that only publishes 8080 (container) -> localhost:8080 (host)
|
||||
# IN reality, the http server should have TLS / SSL
|
||||
# Achieving this with nginx, traefik, or the reverse proxy of your choice is well documented.
|
||||
server {
|
||||
listen 0.0.0.0:8080;
|
||||
error_log ${CONFIG_DIR}/nginx/nginx.error.log;
|
||||
@@ -110,7 +101,7 @@ server {
|
||||
|
||||
location /RPC2 {
|
||||
include scgi_params;
|
||||
scgi_pass unix:${RTORRENT_SOCKET_PATH};
|
||||
scgi_pass unix:/home/user/rtorrent/rpc.socket;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user