Bonjour,
Merci pour ces scripts précieux. J'ai suivi le tuto de l'
installation automatique de Rutorrent sur un kimsufi propre, ça fonctionne bien. Puis j'ai suivi celui de l'
installation de cakebox-light.
J'ai installé les plugins divx et vlc dans mes navigateurs (j'avais oublié de le faire...).
J'ai maintenant un problème d'erreur 401 comme thibaut, qui est signalée par divx webplayer.
L'error.log est vide.
Auriez-vous une piste ? Qu'est-ce que j'ai oublié ?
mon fichier /var/www/cakebox/config/<username1>.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/cheru/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/cheru/"; // Alias used in web server for direct access
$app["cakebox.language"] = "fr"; //Language of Cakebox. Could be : fr, en
/*
Directory settings
*/
$app["directory.ignoreDotFiles"] = false;
$app["directory.ignore"] = "//"; // Regex for files exclusion. For exemple : "/(\.nfo|\.test)$/"
/*
Web player settings
*/
$app["player.default_type"] = "html5"; // html5 or divx or vlc
$app["player.auto_play"] = "false";
/*
User rights
*/
$app["rights.canPlayMedia"] = true;
$app["rights.canDownloadFile"] = true;
$app["rights.canArchiveDirectory"] = false;
$app["rights.canDelete"] = false;
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
$app["rights.canPlayMedia"] = true;
$app["rights.canDownloadFile"] = true;
$app["rights.canArchiveDirectory"] = false;
$app["rights.canDelete"] = false;
Pour /etc/nginx/sites-enabled/cakebox.conf
server {
listen 81;
server_name _;
root /var/www/cakebox/public;
index index.php;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
charset utf-8;
include /etc/nginx/conf.d/cache;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
location = / {
try_files @site @site;
}
location / {
try_files $uri $uri/ @site;
}
location /cheru/ {
alias /home/cheru/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param APPLICATION_ENV production;
## uncomment when running via https
## fastcgi_param HTTPS on;
}
}
et pour /etc/nginx/site-enabled/rutorrent.conf
## debut config cakebox-light ##
location /cakebox/ {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
## fin config cakebox-light ##