Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Següent revisió | Revisió prèvia | ||
| linux:debian:seedbox:metodo3 [05/01/2019 08:28] – creat mate | linux:debian:seedbox:metodo3 [01/02/2020 14:14] (actual) – suprimit mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| - | = rtorrent+rutorrent en contenedor | ||
| - | <code bash run.sh> | ||
| - | STORAGE_PATH=/ | ||
| - | |||
| - | docker run \ | ||
| - | -dt \ | ||
| - | --name rtorrent-rutorrent \ | ||
| - | --restart always \ | ||
| - | -p 80:80 \ | ||
| - | -p 443:443 \ | ||
| - | -p 49160: | ||
| - | -p 49161:49161 \ | ||
| - | -v ${STORAGE_PATH}/ | ||
| - | -v ${STORAGE_PATH}/ | ||
| - | diameter/ | ||
| - | </ | ||
| - | <code perl crypt.pl># | ||
| - | use strict; | ||
| - | |||
| - | chomp(my $filename=$ARGV[0]); | ||
| - | chomp(my $username=$ARGV[1]); | ||
| - | chomp(my $password=$ARGV[2]); | ||
| - | |||
| - | if (!$filename || !$username || !$password) { | ||
| - | print " | ||
| - | } else { | ||
| - | open my $fh, ">>", | ||
| - | print $fh $username . ":" | ||
| - | close $fh or die $!; | ||
| - | } | ||
| - | </ | ||
| - | <code ngnix.tls.conf> | ||
| - | # You may add here your | ||
| - | # server { | ||
| - | # ... | ||
| - | # } | ||
| - | # statements for each of your virtual hosts to this file | ||
| - | |||
| - | ## | ||
| - | # You should look at the following URL's in order to grasp a solid understanding | ||
| - | # of Nginx configuration files in order to fully unleash the power of Nginx. | ||
| - | # http:// | ||
| - | # http:// | ||
| - | # http:// | ||
| - | # | ||
| - | # Generally, you will want to move this file somewhere, and start with a clean | ||
| - | # file but keep this around for reference. Or just disable in sites-enabled. | ||
| - | # | ||
| - | # Please see / | ||
| - | ## | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 default_server ipv6only=on; | ||
| - | |||
| - | keepalive_timeout | ||
| - | ssl_certificate | ||
| - | ssl_certificate_key | ||
| - | ssl_ciphers " | ||
| - | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
| - | ssl_prefer_server_ciphers on; | ||
| - | ssl_session_cache shared: | ||
| - | add_header X-Frame-Options SAMEORIGIN; | ||
| - | add_header X-Content-Type-Options nosniff; | ||
| - | |||
| - | root / | ||
| - | index index.php index.html index.htm; | ||
| - | |||
| - | # Make site accessible from http:// | ||
| - | server_name localhost; | ||
| - | |||
| - | # location / { | ||
| - | # First attempt to serve request as file, then | ||
| - | # as directory, then fall back to displaying a 404. | ||
| - | try_files $uri $uri/ =404; | ||
| - | # Uncomment to enable naxsi on this location | ||
| - | # include / | ||
| - | auth_basic " | ||
| - | auth_basic_user_file / | ||
| - | # } | ||
| - | |||
| - | # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests | ||
| - | #location / | ||
| - | # | ||
| - | #} | ||
| - | |||
| - | # | ||
| - | |||
| - | # redirect server error pages to the static page /50x.html | ||
| - | # | ||
| - | # | ||
| - | #location = /50x.html { | ||
| - | # root / | ||
| - | #} | ||
| - | |||
| - | # pass the PHP scripts to FastCGI server listening on 127.0.0.1: | ||
| - | # | ||
| - | location ~ \.php$ { | ||
| - | fastcgi_split_path_info ^(.+\.php)(/ | ||
| - | # NOTE: You should have " | ||
| - | |||
| - | # With php5-cgi alone: | ||
| - | # | ||
| - | # # With php5-fpm: | ||
| - | fastcgi_pass unix:/ | ||
| - | fastcgi_index index.php; | ||
| - | include fastcgi_params; | ||
| - | fastcgi_param HTTPS on; | ||
| - | fastcgi_param SCRIPT_FILENAME $request_filename; | ||
| - | } | ||
| - | |||
| - | # deny access to .htaccess files, if Apache' | ||
| - | # concurs with nginx' | ||
| - | # | ||
| - | #location ~ /\.ht { | ||
| - | # deny all; | ||
| - | #} | ||
| - | |||
| - | location /RPC2 { | ||
| - | include scgi_params; | ||
| - | scgi_pass 127.0.0.1: | ||
| - | scgi_param SCRIPT_NAME /RPC2; | ||
| - | } | ||
| - | |||
| - | location /completo { | ||
| - | # try_files $uri $uri/ =404; | ||
| - | # | ||
| - | # auth_basic_user_file / | ||
| - | alias / | ||
| - | autoindex on; | ||
| - | } | ||
| - | |||
| - | location /well-known { | ||
| - | auth_basic " | ||
| - | alias / | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | <code md help.md> | ||
| - | # rtorrent + rutorrent | ||
| - | [dockerhub] (https:// | ||
| - | |||
| - | ## notas de run | ||
| - | - Web UI ports: 80 and 443 (can be remapped in ' | ||
| - | - DHT UDP port: 49160 (can be remapped) | ||
| - | - Incoming connections port: 49161 (can be remapped) | ||
| - | - Downloads volume: /downloads | ||
| - | - rtorrent scratch files (.rtorrent/ | ||
| - | - autodl-irssi config files are created automatically: | ||
| - | - external rtorrent config (.rtorrent/ | ||
| - | - external ruTorrent ui config (config will be created automatically): | ||
| - | - external nginx and rtorrent logs: / | ||
| - | - 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 " | ||
| - | - `printf " | ||
| - | - `printf " | ||
| - | - ```(PASSWORD=" | ||
| - | - 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. | ||
| - | |||
| - | </ | ||
| - | == + info | ||
| - | * [[https:// | ||
| - | * [[https:// | ||