Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| linux:debian:seedbox:rtorrent_rutorrent [24/12/2020 01:32] – mate | linux:debian:seedbox:rtorrent_rutorrent [24/12/2020 01:50] (actual) – [instalacion rtorrent+rutorrent] mate | ||
|---|---|---|---|
| Línia 3: | Línia 3: | ||
| - crear estructura de directorios:< | - crear estructura de directorios:< | ||
| mkdir -p data/ | mkdir -p data/ | ||
| - | mkdir -p data/root | + | mkdir -p data/config | 
| - | mkdir -p data/ | + | |
| </ | </ | ||
| - | - copiar ficheros de configuración | + | - copiar ficheros de configuración (extraidos de propio contenedor y modificados a conveniencia): | 
| - | * añadir:<code properties> | + | * <code properties | 
| - | location /completo | + | server { | 
| - | alias / | + | listen 443 ssl; | 
| - | autoindex on; | + | 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; | ||
| + | } | ||
| + | |||
| + |  | ||
| + | |||
| + | try_files $uri $uri/ =404; | ||
| + | # Uncomment to enable naxsi on this location | ||
| + | # include / | ||
| + | auth_basic " | ||
| + | auth_basic_user_file / | ||
| + | |||
| + |  | ||
| + | autoindex on; | ||
| + | } | ||
| } | } | ||
| </ | </ | ||
| - | - copiar fichero **config.php** en **data/rutorrent** (para cambiar variable '' | + | * copiar fichero **config.php** en **data/config** (para cambiar variable '' | 
| - crear enlaces simbólicos:< | - crear enlaces simbólicos:< | ||
| # los enlaces funcionarán desde dentro del contenedor por el mapeo de volumen | # los enlaces funcionarán desde dentro del contenedor por el mapeo de volumen | ||
| - | ln -s / | + | ln -s / | 
| - | ln -s / | + | ln -s / | 
| </ | </ | ||
| + | - crear fichero **.htaccess** en **data/ | ||
| - ejecutar:< | - ejecutar:< | ||
| - | CERTBOT_PATH="/ | ||
| - | |||
| docker run \ | docker run \ | ||
| -dt \ | -dt \ | ||
| - | --restart unless-stopped \ | ||
| --name rtorrent-rutorrent \ | --name rtorrent-rutorrent \ | ||
| -p 443:443 \ | -p 443:443 \ | ||
| -p 49160: | -p 49160: | ||
| -p 49161:49161 \ | -p 49161:49161 \ | ||
| - | -v ${PWD}/ | + | -v $PWD/ | 
| - | -v ${PWD}/data/root:/root \ | + | -v /etc/letsencrypt:/etc/ | 
| - | -v ${PWD}/data/rutorrent/ | + | -v $PWD/data/config/ | 
| - | -v ${CERTBOT_PATH}/data/certbot/conf:/etc/letsencrypt \ | + | -v $PWD/data/config/rutorrent-tls.nginx:/root/rutorrent-tls.nginx | 
| - | -v ${CERTBOT_PATH}/ | + | diameter/ | 
| - | diameter/ | + | |
| </ | </ | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| == old | == old | ||
| * [[linux: | * [[linux: | ||
| + | * [[linux: | ||
| == + info | == + info | ||