Bonjour,
le tuto d'installation est t'il toujours bon svp?
Car il me dit 1.7 disponible sur cakebox
merci d'avance
le tuto d'installation est t'il toujours bon svp?
Car il me dit 1.7 disponible sur cakebox
merci d'avance
oui, par contre si tu suis ma méthode pour mettre à jour, il faudra rajouter la variable cakebox.language des les fichiers confKlaas wrote:Bonjour,
le tuto d'installation est t'il toujours bon svp?
Car il me dit 1.7 disponible sur cakebox
merci d'avance
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/darkphoenix/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/darkphoenix/"; // Alias used in web server for direct access
/*
Directory settings
*/
$app["directory.ignoreDotFiles"] = false;
$app["directory.ignore"] = "//"; // Regex for files exclusion. For exemple : "/(\.nfo|\.test)$/"
/*
Web player settings
*/
$app["player.default_type"] = "divx"; // 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"] = "";
~
Pour /etc/nginx/sites-enabled/cakebox.confserver {
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 /<username1>/ {
alias /home/<username1>/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /<username2>/ {
alias /home/<user2>/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;
}
}
location /darkphoenix/ {
alias /home/darkphoenix/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
/etc/nginx/sites-enabled/rutorrent.confserver {
...
## 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 ##
...
}
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
si je désactive ces deux lignes (celles propres à rutorrent donc les deux anciennes) dans rutorrent.conf donc /etc/nginx/sites-enabled/rutorrent.conf tout remarche.<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/thibaut/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/thibaut/"; // 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"] = "";
Fichier /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 /thibaut/ {
alias /home/thibaut/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;
}
}
Pour /etc/nginx/site-enabled/rutorrent.conf
server{
...
## Début 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 ##
...
}
Merci pour votre aide !<?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 ##
y a un souci avec divx web player? c'est la variable cakebox.access qui pose problème?kurumi wrote:Pour résoudre votre problème d'erreur 401 avec le lecteur divx player "autorisation d'accés au fichier", j'ai proposé une solution en fin de page 1.
Pour moi cela n'a pas fonctionné, ou plutôt, je n'atteins plus la cakebox (not found). Ma config différait peut-être de la tienne, j'ai du raté quelque chose.kurumi wrote:Pour résoudre votre problème d'erreur 401 avec le lecteur divx player "autorisation d'accés au fichier", j'ai proposé une solution en fin de page 1.
/var/www/cakebox/config/b0t.php
J'ai modifié la ligne suivante afin que l'utilisateur puisse supprimer les fichiers :
$app["rights.canDelete"] = true;
Cependant, lors du clic pour la suppression, j'obtiens ce message d'erreur :#ls -lah /home/
total 12K
drwxr-xr-x 3 root root 4.0K Sep 7 13:16 .
drwxr-xr-x 22 root root 4.0K Sep 7 12:53 ..
drwxr-xr-x 5 root b0t 4.0K Sep 7 10:51 b0t
# ls -lah /home/b0t/
total 24K
drwxr-xr-x 5 root b0t 4.0K Sep 7 10:51 .
drwxr-xr-x 3 root root 4.0K Sep 7 13:16 ..
-rw-r--r-- 1 b0t b0t 648 Sep 7 11:02 .rtorrent.rc
drwxr-xr-x 2 b0t b0t 4.0K Sep 7 13:35 .session
drwxr-xr-x 2 b0t b0t 4.0K Sep 7 13:28 torrents
drwxr-xr-x 2 b0t b0t 4.0K Sep 7 10:48 watch
# ls -lah /home/b0t/torrents/
total 8.0K
drwxr-xr-x 2 b0t b0t 4.0K Sep 7 13:28 .
drwxr-xr-x 5 root b0t 4.0K Sep 7 10:51 ..
-rw-r--r-- 1 b0t b0t 0 Sep 7 13:28 test.txt
J'imagine qu'il s'agit d'un problème de droit d'écriture sur le dossier /home/b0t/torrents, et je souhaiterais avoir un conseil pour modifier ça de façon sûre. Moi je suis la méthode " sans nom de domaine " et j'ai quand même l'erreur 401.cheru wrote:Pour moi cela n'a pas fonctionné, ou plutôt, je n'atteins plus la cakebox (not found). Ma config différait peut-être de la tienne, j'ai du raté quelque chose.kurumi wrote:Pour résoudre votre problème d'erreur 401 avec le lecteur divx player "autorisation d'accés au fichier", j'ai proposé une solution en fin de page 1.
Je vais remettre à l'état précédent et attendre la solution de magicalex
Merci j'attend ça avec impatience !magicalex wrote:je trouvé la solution je corrige demain ou dans la nuit si je suis motivé.
location /<username1>/ {
alias /home/<username1>/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
pour la mettre dans le fichier rutorrent.conf comme ceci : ( mettre location /cakebox devant username) location /cakebox/<username1>/ {
alias /home/<username1>/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
dites moi si ça fonctionne.