Comments (3)
I'm using an external container for this. Feel free to use my configuration as an example! :)
rtorrent-nginx:
image: nginx:1.19-alpine
container_name: rtorrent-nginx
restart: unless-stopped
networks:
- http_network
- rtorrent_network
depends_on:
- rtorrent
labels:
- traefik.enable=true
- traefik.http.routers.rtorrent-nginx.entrypoints=http
- traefik.http.routers.rtorrent-nginx.rule=Host(`box.domain.tld`) && PathPrefix(`/RPC2`)
- traefik.http.routers.rtorrent-nginx.middlewares=https-redirect@file
- traefik.http.routers.rtorrent-nginx-secure.entrypoints=https
- traefik.http.routers.rtorrent-nginx-secure.rule=Host(`box.domain.tld`) && PathPrefix(`/RPC2`)
- traefik.http.routers.rtorrent-nginx-secure.tls=true
- traefik.http.routers.rtorrent-nginx-secure.tls.certresolver=http
- traefik.http.routers.rtorrent-nginx-secure.middlewares=hsts-headers@file,secure-headers@file,admins-auth@file
- traefik.http.routers.rtorrent-nginx-secure.service=rtorrent-nginx
- traefik.http.services.rtorrent-nginx.loadbalancer.server.port=80
- traefik.docker.network=http_network
volumes:
- /home/docker/rtorrent/nginx/rtorrent.conf:/etc/nginx/conf.d/rtorrent.conf
server {
listen 80 default_server;
server_name box.domain.tld;
# Traefik -> nginx -> rtorrent RPC
location /RPC2 {
scgi_pass rtorrent:5000;
include scgi_params;
}
}
Don't forget to put /RPC2
behind a basic authentication, that's the reason my middleware admins-users@file
(traefik) is here for.
from docker-rtorrent-flood.
Amazing, thanks for the super detailed response! I will try that :)
from docker-rtorrent-flood.
I eventually did it with nginx in the end, but the idea is the same. Thanks!
from docker-rtorrent-flood.
Related Issues (20)
- Error when installing? HOT 1
- Error during docker pull HOT 3
- Operation not permitted. Stack dump not enabled. HOT 2
- Any idea what's wrong? HOT 1
- Cannot connect to rTorrent HOT 3
- How to connect to rTorrent? HOT 4
- How to edit rtorrent.rc? HOT 1
- Perhaps add a log message about the chown command at startup HOT 2
- Tried /tmp/rtorrent.sock can't connect HOT 2
- Torrents won't stay active HOT 8
- Setting unwanted permissions for shared directories
- rtorrent keeps saying that the NFS disk is full
- Speed limits
- Can't set priorities without restarting the container
- how to update from libtorrent v0.13.7
- Provide a SCGI Mount Point HOT 2
- how to enable ssl support?
- Auth return 404 when i try to connect
- editable rtorrent.rc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-rtorrent-flood.