# rtorrent + rutorrent [dockerhub] (https://hub.docker.com/r/diameter/rtorrent-rutorrent/) ## notas de run - Web UI ports: 80 and 443 (can be remapped in 'docker run') - DHT UDP port: 49160 (can be remapped) - Incoming connections port: 49161 (can be remapped) - Downloads volume: /downloads - rtorrent scratch files (.rtorrent/{watch|session} will be created automatically): /downloads - autodl-irssi config files are created automatically: /downloads/.autodl - external rtorrent config (.rtorrent/.rtorrent.rc): /downloads - external ruTorrent ui config (config will be created automatically): /downloads/.rutorrent - external nginx and rtorrent logs: /downloads/.log/ - rtorrent uid and gid: USR_ID and GRP_ID env vars, default is 1000:1000 - php-fpm memory limit: PHP_MEM env var, default is 256M - disable IPv6 binding in nginx: set env var NOIPV6=1, default is not set - alternative webroot: WEBROOT env var, defailt is / ## htpasswd Put .htpasswd into your /downloads volume root, the container will re-read .htpasswd each time it starts. To remote auth, simply remove .htpasswd and restart your container. ### generate - `printf "John:$(openssl passwd -crypt V3Ry)\n" >> .htpasswd # this example uses crypt encryption` - `printf "Mary:$(openssl passwd -apr1 SEcRe7)\n" >> .htpasswd # this example uses apr1 (Apache MD5) encryption` - `printf "Jane:$(openssl passwd -1 V3RySEcRe7)\n" >> .htpasswd # this example uses MD5 encryption` - ```(PASSWORD="SEcRe7PwD";SALT="$(openssl rand -base64 3)";SHA1=$(printf "$PASSWORD$SALT" | openssl dgst -binary -sha1 | xxd -ps | sed 's#$#'"`echo -n $SALT | xxd -ps`"'#' | xxd -r -ps | base64);printf "Jim:{SSHA}$SHA1\n" >> .htpasswd) # this example uses SSHA encryption``` - script *crypt.pl* ## TLS Put your keyfile (shall be named nginx.key) and your certificate (nginx.crt) into /dowloads volume root, the container looks for these files each time it starts.