Giter Site home page Giter Site logo

Comments (3)

Wonderfall avatar Wonderfall commented on August 16, 2024

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.

FlorentLM avatar FlorentLM commented on August 16, 2024

Amazing, thanks for the super detailed response! I will try that :)

from docker-rtorrent-flood.

FlorentLM avatar FlorentLM commented on August 16, 2024

I eventually did it with nginx in the end, but the idea is the same. Thanks!

from docker-rtorrent-flood.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.