Aquesta és una revisió antiga del document


rtorrent+rutorrent en contenedor

  1. crear estructura de directorios:
    mkdir -p data/downloads/completo
    mkdir -p data/root
    mkdir -p data/rutorrent
  2. copiar ficheros de configuración contenedor en /root (sacados del propio contenedor y modificar los ficheros de configuración de nginx):
    • añadir:
      location /completo {
              alias /downloads/completo;
              autoindex on;
      }
  3. copiar fichero config.php en data/rutorrent (para cambiar variable $forbidUserSettings = true;)
  4. crear enlaces simbólicos:
    # los enlaces funcionarán desde dentro del contenedor por el mapeo de volumen
    ln -s /etc/letsencrypt/live/k0.vividumcodex.com/cert.pem nginx.crt
    ln -s /etc/letsencrypt/live/k0.vividumcodex.com/privkey.pem nginx.pem
  5. ejecutar:
    CERTBOT_PATH="/home/user/workspaces/nginx+certbot"
     
    docker run \
    	-dt \
    	--restart unless-stopped \
    	--name rtorrent-rutorrent \
    	-p 443:443 \
    	-p 49160:49160/udp \
    	-p 49161:49161 \
    	-v ${PWD}/data/downloads:/downloads \
    	-v ${PWD}/data/root:/root \
    	-v ${PWD}/data/rutorrent/config.php:/var/www/rutorrent/conf/config.php \
    	-v ${CERTBOT_PATH}/data/certbot/conf:/etc/letsencrypt \
    	-v ${CERTBOT_PATH}/data/certbot/www:/var/www/certbot \
    diameter/rtorrent-rutorrent:latest
  • linux/debian/seedbox/rtorrent_rutorrent.1608802478.txt.gz
  • Darrera modificació: 24/12/2020 01:34
  • per mate