J'ai refait l'installation et cela a fonctionner. Je pense que je vais peut être pas regarder ce nouveau serveur car j'ai verifier la différence entre mon ancien et le nouveau:
Ancien: https://www.online.net/fr/serveur-dedie/dedibox-classic
Nouveau: Serveur Dedibox LT 2013 Xeon E3 1220 16 Go 2 x 2 To 1Gbit/sec

Je vois pas beaucoup de différence mais quand je lance un torrent en même temps, j'ai une très grosse différence. le nouveau est très faible et le processeur est à 100% alors que l'autre ne dépasse pas les 15%.

ps: c'est plus visible depuis cette installation. J'ai plus la charge sur seedbox mais rutorrent trop lent.
Coucou all,

quand je restart nginx après l'installation voici le message sous putty.
root@ip:/# service nginx restart
[....] Restarting nginx: nginxnginx: [emerg] location "/cakebox/" cannot be inside the exact location "/favicon.ico" in /etc/nginx/sites-enabled/rutorrent.conf:27
nginx: configuration file /etc/nginx/nginx.conf test failed

Si une âme charitable a une idée, je suis preneur

merci d'avance
erreur ligne 27 du fichier rutorrent.conf assez explicite je pense ^^
ludoz59 wrote:Bonjour a tous ,
j'ai tout installé avec succes par contre je comprend pas quand je vais sure cakebox light ca m'affiche ca https://images.mondedie.fr/images/sanstirtr.jpg
J'espere que vous pourrez m'aidé même par MP

Bonjour a tous,

Moi j'ai le même problème.
Depuis la derniere maj j'ai quelques erreurs :
  • La possibilité de choisir son lecteur ne fonctionne plus
  • Dans la section A propos, la version actuelle ne s'affiche pas
@ludoz59 et @xxlimxx
bower update --allow-root
@winz
vérifie ton fichier conf de ton utilisateur il doit être incomplet.
Magicalex wrote:@ludoz59 et @xxlimxx
bower update --allow-root
Je ne comprends pas je viens de refaire la manip mais ça n'a rien changer c'est toujours pareil
Magicalex wrote:@ludoz59 et @xxlimxx
bower update --allow-root
Je viens d'effectué la commande aucun changement
Sans plus d'info je peux pas aider désolé. log serveur + console du navigateur
Bonjour ,
Alors les logs sont vierges il n'y a rien dedans et pour la console navigateur je pense que ca t'aidera je vois qu'il y a des erreurs https://images.mondedie.fr/images/sanstigcg.jpg
D'ailleurs j'ai regardé le dossier /var/www/cakebox/public/components/ et il est vide ....
Ba oui mais bower faut l'exécuter dans le dossier cakebox
cd /var/www/cakebox/
bower update --allow-root
Magicalex wrote:Ba oui mais bower faut l'exécuter dans le dossier cakebox
cd /var/www/cakebox/
bower update --allow-root
Oui c'est bien ce que je fais mais il n'y a aucun changement.

root@ns327638:/var/www/cakebox# bower update --allow-root
bower cached        git://github.com/twbs/bootstrap.git#3.2.0
bower validate      3.2.0 against git://github.com/twbs/bootstrap.git#~3.2.0
bower cached        git://github.com/angular/bower-angular.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular.git#~1.2.19
bower cached        git://github.com/angular/bower-angular-i18n.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular-i18n.git#~1.2.19
bower cached        git://github.com/angular/bower-angular-resource.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular-resource.git#~1.2.19
bower cached        git://github.com/angular/bower-angular-route.git#1.2.24
bower validate      1.2.24 against git://github.com/angular/bower-angular-route.git#~1.2.19
bower cached        git://github.com/angular-ui/bootstrap-bower.git#0.11.0
bower validate      0.11.0 against git://github.com/angular-ui/bootstrap-bower.git#~0.11.0
bower cached        git://github.com/fabien-d/alertify.js-shim.git#0.3.10
bower validate      0.3.10 against git://github.com/fabien-d/alertify.js-shim.git#~0.3.10
bower cached        git://github.com/asafdav/ng-clip.git#0.2.1
bower validate      0.2.1 against git://github.com/asafdav/ng-clip.git#0.2.1
bower cached        git://github.com/PascalPrecht/bower-angular-translate.git#2.2.0
bower validate      2.2.0 against git://github.com/PascalPrecht/bower-angular-translate.git#~2.2.0
bower cached        git://github.com/PascalPrecht/bower-angular-translate-loader-static-files.git#2.2.0
bower validate      2.2.0 against git://github.com/PascalPrecht/bower-angular-translate-loader-static-files.git#~2.2.0
bower cached        git://github.com/jquery/jquery.git#2.1.1
bower validate      2.1.1 against git://github.com/jquery/jquery.git#>= 1.9.0
bower cached        git://github.com/zeroclipboard/zeroclipboard.git#2.1.6
bower validate      2.1.6 against git://github.com/zeroclipboard/zeroclipboard.git#~2.1.0
Magicalex wrote:Ba oui mais bower faut l'exécuter dans le dossier cakebox
cd /var/www/cakebox/
bower update --allow-root
Ca ne change rien ...




Je sais plus quoi faire j'ai recommencer le tuto je bien vérifier que tout soit bon mais rien a faire toujours la même chose.
Si il y a besoin de plus info me demander
je vais regarder, donne moi tes accès par mp
J'ai le même problème si ta besoin d'acces magicalex ta juste a demandé ^^
le problème vient bien de bower.

tu fais en root précisément cela.
cd /var/www/cakebox/
bower update --allow-root
envoie les mots de passe par mp si tu veux
Bonjour,
je viens me greffer, j'ai un problème similaire.
J'ai beau effectuer la mise à jour (automatique et manuelle), ma version ne change pas, elle reste à 1.6.1.
Et je ne peux plus choisir mon lecteur ni streamer...
Donc si vous avez une réponse, je suis preneur
Un très grand merci a toi Magicalex tout fonctionne parfaitement et 2e serveur configurer avec succès sans aucun problème
Magicalex wrote:@winz
vérifie ton fichier conf de ton utilisateur il doit être incomplet.
Fichier conf de mon user mis à jour mais toujours le même soucis
Bonjour,

Pour commencer, merci de vos efforts et de nous faire bénéficier de votre savoir !

Grace à vous j'ai peu deployer sur mon serveur kimsufi en debian 64 bits rutorrent (light via ce tuto http://mondedie.fr/d/5399) ainsi que cakebox light. Tout est parfait, vraiment !

Je precise que je suis un debutant dans l'utilisation de nginx, la logique m'échappe encore un peu. Je souhaiterai pouvoir utiliser des sous domaines pour rutorrent ainsi que cakebox. Apres plusieurs tentatives, je peux contacter rutorrent via seedbox.domaine.ltd mais, meme si j'arrive à mes fins en utilisant cakebox.domaine.ltd, j'obtiens une erreur 401 si je tente de lire une video.

Je suis à present revenu à la configuration par défaut et à nouveau tout fonctionne parfaitement. Je precise que le nécessaire a été fait au niveau de mes dns.

Quelqu'un pourrait-il m'éclairer s'il vous plait ?

Cordialement,

Julien !
Bonsoir tout le monde !

Euh comment dire...j'ai encore merdé.....j'ai bien suivi le tuto de Magicalex pour l'installation de la Cakebox-Light et j'obtiens cette erreur :
"listen" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:35
Voici mon rutorrent.conf :

    location /cakebox/<username2>/ {
        alias /home/<user2>/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    ## etc si d'autre utilisateur ##

    ## fin config cakebox-light ##

    
 }
        listen 80 default_server;
        listen 443 default_server ssl;
        server_name _;

        index index.html index.php;
Bon ben la ligne 35 c'est : listen 80 default_server;...mais alors, j'ai vraiment aucune idée pourquoi cela ne marche pas.

Un coup de main serait plus que bienvenu, merci bien, en attendant bonne soirée et bon week end à tous
oula oula.

Le mieux dans ce cas là c'est de prendre du recule et surtout de COMPRENDRE CE QUE TU FAIS.

Nginx c'est simple BEAUCOUP plus simple que apache

Il y a un fichier principale nginx.conf.

dans ce fichier il y a le serveur en tant que telle. à savoir symbolisé par http {}
http {

    server  {
      #vhost 1
      listen 80;
    }

    server  {
      #vhost 2
      listen 80;
    }

    server  {
      #vhost 3
      listen 80;

        location /monsite/ {
        
        }
    }

    ## etc

}

y a que ça à retenir le reste y a que à regarder dans la doc d'abord http ensuite server et pour finir location.
Si vous avez pas cette cohérence alors c'est pas la peine de nous voir, vous connaissez déjà votre erreur.

Donc en conclusion arrêtez de faire n'importe quoi, parce que vous pouvez être sûr à 99% que ça va pas fonctionner.
Je vous remercie pour votre retour. J'espère y voir plus clair prochainement !

Bon courage à vous
On n'est jamais, finalement, mieux servi que par soi-même...c'était une erreur de balise mal placée

J'ai fait tourner l'huile de matière grise et Eurêka !

Merci encore pour tes tutos Magicalex
8 jours plus tard
Bonjour,

Tout d'abord, merci à Magicalex pour ce tuto, je suis tombé dessus par hasard et il m'a bien servi.
L'installation que j'ai faite est néanmoins un peu différente, car je n'installe pas rutorrent, j'ai déjà deluge d'installé.

J'ai donc réussi à installer les pré-requis, puis cakebox light.
J'arrive sur la page http://192.168.0.5:81/cakebox/motok/
Le seul problème est que je ne vois aucun fichier.
Cela est peux-être du au fait que mon cakebox.root pointe sur un disque dur USB qui contient un système de fichier en NTFS.

Je vois aussi des erreurs dans la console java (liées ?).

Je vous colle donc le contenu des fichiers :

/etc/nginx/sites-enabled/cakebox.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://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# 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 /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
	listen   81 default_server; ## listen for ipv4; this line is default and implied
	#listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

	root /var/www/cakebox/public;
	index  index.php;

	# Make site accessible from http://localhost/
	server_name CakeBox;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri $uri/ /index.html;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules
	}

        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;
        }

	location /cakebox/motok/ {
        alias /media/USBHDD1/shares/Web/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
        autoindex on;
	}

	location /doc/ {
		alias /usr/share/doc/;
		autoindex on;
		allow 127.0.0.1;
		allow ::1;
		deny all;
	}

	# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
	#location /RequestDenied {
	#	proxy_pass http://127.0.0.1:8080;    
	#}

	#error_page 404 /404.html;

	# redirect server error pages to the static page /50x.html
	#
	#error_page 500 502 503 504 /50x.html;
	#location = /50x.html {
	#	root /usr/share/nginx/www;
	#}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	#
	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
	#	# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
	#
	#	# With php5-cgi alone:
	#	fastcgi_pass 127.0.0.1:9000;
	#	# With php5-fpm:
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include fastcgi_params;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	#
	#location ~ /\.ht {
	#	deny all;
	#}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#	listen 8000;
#	listen somename:8080;
#	server_name somename alias another.alias;
#	root html;
#	index index.html index.htm;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}


# HTTPS server
#
#server {
#	listen 443;
#	server_name localhost;
#
#	root html;
#	index index.html index.htm;
#
#	ssl on;
#	ssl_certificate cert.pem;
#	ssl_certificate_key cert.key;
#
#	ssl_session_timeout 5m;
#
#	ssl_protocols SSLv3 TLSv1;
#	ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
#	ssl_prefer_server_ciphers on;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}
/var/www/cakebox/config/motok.php
<?php

/*
  General configuration of Cakebox
*/
$app["cakebox.root"] = "/media/USBHDD1/shares/Web/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/motok/"; // 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"] = "vlc"; // 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"] = "";
access.log
192.168.0.3 - - [29/Sep/2014:17:10:22 +0200] "GET /cakebox/motok/ HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:24 +0200] "GET /cakebox/motok/ HTTP/1.1" 200 204 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:26 +0200] "GET /cakebox/motok HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:26 +0200] "GET /motok HTTP/1.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/ressources/languages/locale-fr.json HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /ressources/languages/locale-fr.json HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/api/app HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/api/rights HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /api/app HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /api/rights HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/partials/browse.html HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /partials/browse.html HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/jquery/dist/jquery.min.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/jquery/dist/jquery.min.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular/angular.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular/angular.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular-resource/angular-resource.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular-resource/angular-resource.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:27 +0200] "GET /cakebox/components/angular-route/angular-route.min.js.map HTTP/1.1" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
127.0.0.1 - - [29/Sep/2014:17:10:27 +0200] "GET /components/angular-route/angular-route.min.js.map HTTP/1.0" 304 0 "http://192.168.0.5:81/cakebox/motok" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
192.168.0.3 - - [29/Sep/2014:17:10:34 +0200] "-" 400 0 "-" "-"
192.168.0.3 - - [29/Sep/2014:17:10:34 +0200] "-" 400 0 "-" "-"
Le fichier error.log est vide.

Et enfin, ce que la console javascript me donne :
TypeError: Cannot read property 'local' of undefined
    at http://192.168.0.5:81/cakebox/app/controller/AppCtrl.js:14:39
    at http://192.168.0.5:81/cakebox/components/angular-resource/angular-resource.min.js:9:303
    at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
    at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:101:350
    at k.$eval (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:68)
    at k.$digest (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:109:168)
    at k.$apply (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:398)
    at h (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:72:454)
    at u (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:77:463)
    at XMLHttpRequest.w.onreadystatechange (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:79:24) angular.js:10071
4Error: [$resource:badcfg] http://errors.angularjs.org/1.2.25/$resource/badcfg?p0=array&p1=object
    at Error (native)
    at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:6:450
    at p.then.m.$resolved (http://192.168.0.5:81/cakebox/components/angular-resource/angular-resource.min.js:8:517)
    at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
    at E (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:100:187)
    at http://192.168.0.5:81/cakebox/components/angular/angular.min.js:101:350
    at k.$eval (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:68)
    at k.$digest (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:109:168)
    at k.$apply (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:112:398)
    at h (http://192.168.0.5:81/cakebox/components/angular/angular.min.js:72:454) 
Ok, je dois t'avouer que j'ai essayé tellement de trucs que je ne sais plus où j'ai trouvé ce fichier, je viens de le remplacer par le tien.
Du coup, j'ai bien une arborescence quand je vais sur http://192.168.0.5/cakebox/

Par contre, après avoir indiqué le chemin /media/USBHDD1/shares/Web/ en lieu et place de /YOUR/PATH , j'ai maintenant cette erreur
{"status_code":404,"message":"No route found for \u0022GET \/motok\u0022"}
quand je veux aller sur http://192.168.0.5/cakebox/motok

Merci de tes précieuses indications et de ta réactivité !
C'est pas sensé être l'authentification des utilisateurs justement ?

Ok, je suis bien compliqué la vie en fait, je viens d'éditer le fichier default.php dans config et ça fonctionne ...

Merci en tt cas de ta patience.
Motok wrote:C'est pas sensé être l'authentification des utilisateurs justement ?
Merci en tt cas de ta patience.
non, l'authentification c'est via le serveur web avec une authentification basic
Ah, et une dernière question stp (après j'arrête promis).
Pourquoi qd je vais sur une mp3 (ou un flac) il me le télécharge directement alors que qd je met le lien vers le fichier dans le navigateur web vlc me le lit directement ?

ex : http://192.168.0.5/cakebox/index.html#/play/Songs/Archive/1996%20-%20Londinium/01%20-%20Old%20Artist.mp3

Pourtant c'est bien marqué dans le fichier bootstrap.php :
$app["extension.audio"]    = ["mp3", "flac", "ogg", "aac", "wma"];
Merci encore
Motok wrote:Ah, et une dernière question stp (après j'arrête promis).
Pourquoi qd je vais sur une mp3 (ou un flac) il me le télécharge directement alors que qd je met le lien vers le fichier dans le navigateur web vlc me le lit directement ?

ex : http://192.168.0.5/cakebox/index.html#/play/Songs/Archive/1996%20-%20Londinium/01%20-%20Old%20Artist.mp3

Pourtant c'est bien marqué dans le fichier bootstrap.php :
$app["extension.audio"]    = ["mp3", "flac", "ogg", "aac", "wma"];
Merci encore 🙂
Alors cakebox-light ne supporte pas encore la lecture des fichiers audio. Je dis encore parce que c'est prévu je crois.
9 jours plus tard
Hello,

Je viens de refaire une installation propre et fraiche de Debian 7, j'ai suivi les tutoriels Nginx + Rutorrent + Cakebox light. Je dois dire que ces tutos sont d'une grande qualité.

J'aimerais d'abord faire des feedback :

- En pré-reqis j'ai dû installer le transport https suite à l'ajout du dépot nodejs (aptitute update me retournait une erreur).
sudo apt-get install apt-transport-https 
- Pour nodejs et npm, l'installation ne se faisait pas j'ai dû lancer cette commande puis installer.
curl -sL https://deb.nodesource.com/setup | bash - )
- Pour nodejs-legacy, j'ai dû inscrire manuellement les dépot dans /etc/apt/sources.list ( deb http://ftp.de.debian.org/debian wheezy-backports main )

J'ai donc pu terminer l'installation et configurer mes users, cependant je reçois ce message d'erreur lorsque je veux télécharger un fichier, le stream ne fonctionne pas non plus :
{"status_code":404,"message":"No route found for \u0022GET 
.....etc....

A savoir que j'ai un user "master" et que les autres users doivent avoir accès uniquement à cakebox avec leur propre logins. Cependant je fais pointer le même dossier "torrents" sur tous les users, je souhaite qu'ils aient tous le même cakebox avec les mêmes fichiers. L'user master est le seul à avoir accès à rutorrent.

Voici mes fichiers de config :

cakebox.conf
server {
    listen 81;
    server_name _;

    root /var/www/cakebox/public;
    index index.php;

    allow 127.0.0.1; # only the proxy
    deny all;

    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 ~ \.php$ {
        return 404;
    }

    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;
    }
}
rutorrent.conf
server {
	listen 80 default_server;
	listen 443 default_server ssl;
	server_name _;

	index index.html index.php;
	charset utf-8;
	client_max_body_size 10M;

	ssl_certificate /etc/nginx/ssl/server.crt;
	ssl_certificate_key /etc/nginx/ssl/server.key;

	access_log /var/log/nginx/rutorrent-access.log combined;
	error_log /var/log/nginx/rutorrent-error.log error;

	error_page 500 502 503 504 /50x.html;
	location = /50x.html { root /usr/share/nginx/html; }

	auth_basic "seedbox";
	auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";

	location = /favicon.ico {
		access_log off;
		log_not_found off;
	}

	## début config accueil serveur ##

	location ^~ / {
	    root /var/www/base;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	    satisfy any;
	    allow all;
	}

	## fin config accueil serveur ##

	## début config proxy ##

	location ^~ /proxy {
	    root /var/www;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	}

	## fin config proxy ##

	## début config rutorrent ##

	location ^~ /rutorrent {
	    root /var/www;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;

	    location ~ /\.svn {
		    deny all;
	    }

	    location ~ /\.ht {
		    deny all;
	    }
	}

	location ^~ /rutorrent/conf/ {
		deny all;
	}

	location ^~ /rutorrent/share/ {
		deny all;
	}

	## fin config rutorrent ##

	## début config munin ##

	location ^~ /graph {
	    root /var/www;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	}

	location ^~ /graph/img {
	    root /var/www;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	    error_log /dev/null crit;
	}

	location ^~ /monitoring {
	    root /var/www;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	}

	## fin config munin ##

	## début config seedbox-manager ##

	location ^~ /seedbox-manager {
	alias /var/www/seedbox-manager/public;
	    include /etc/nginx/conf.d/php-manager;
	    include /etc/nginx/conf.d/cache;
	}

        ## fin config seedbox-manager ##

        ## config utilisateurs  ##

        location /LICHKUAN {
            include scgi_params;
            scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
            auth_basic "seedbox";
            auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_lichkuan";
        }

        location /DAVIDREY {
            include scgi_params;
            scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/username.socket
            auth_basic "seedbox";
            auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_davidrey";
        }

        location /MANOU {
            include scgi_params;
            scgi_pass 127.0.0.1:5004; #ou socket : unix:/home/username/.session/username.socket
            auth_basic "seedbox";
            auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_manou";
        }

        location /HERVE {
            include scgi_params;
            scgi_pass 127.0.0.1:5005; #ou socket : unix:/home/username/.session/username.socket
            auth_basic "seedbox";
            auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_herve";
        }

        location /JACKY {
            include scgi_params;
            scgi_pass 127.0.0.1:5006; #ou socket : unix:/home/username/.session/username.socket
            auth_basic "seedbox";
            auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_jacky";
        }

   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_redirect off;
    }

    location /cakebox/lichkuan/ {
        alias /home/lichkuan/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    location /cakebox/davidrey/ {
        alias /home/lichkuan/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    location /cakebox/manou/ {
        alias /home/lichkuan/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    location /cakebox/herve/ {
        alias /home/lichkuan/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    location /cakebox/jacky/ {
        alias /home/lichkuan/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }
}
lichkuan.php (mon user master)
<?php

/*
  General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/lichkuan/torrents"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/lichkuan"; // 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"] = true;
$app["rights.canDelete"] = true;

/*
  Betaseries account
  NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
jacky.php (user lambda)
<?php

/*
  General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/lichkuan/torrents"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/jacky"; // 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"] = "";
Merci d'avance pour votre aide !
Je crois que je vais m'autofouetter

Erreur de syntaxe :
$app["cakebox.root"] = "/home/lichkuan/torrents"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/lichkuan"; // Alias used in web server for direct access
oublié de mettre un /
$app["cakebox.root"] = "/home/lichkuan/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/lichkuan/"; // Alias used in web server for direct access
lkan wrote:Je crois que je vais m'autofouetter

Erreur de syntaxe :
$app["cakebox.root"] = "/home/lichkuan/torrents"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/lichkuan"; // Alias used in web server for direct access
oublié de mettre un /
$app["cakebox.root"] = "/home/lichkuan/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/lichkuan/"; // Alias used in web server for direct access
hum je trouve ça bizarre...

Normalement ce genre d'erreur est géré par cakebox cf https://github.com/Cakebox/Cakebox-light/blob/master/app/bootstrap.php#L31-L32
Et pour cakebox.access normalement c'est le serveur web qui te redirige automatiquement de /access à /access/

lkan wrote:Hello,

Je viens de refaire une installation propre et fraiche de Debian 7, j'ai suivi les tutoriels Nginx + Rutorrent + Cakebox light. Je dois dire que ces tutos sont d'une grande qualité.

J'aimerais d'abord faire des feedback :

- En pré-reqis j'ai dû installer le transport https suite à l'ajout du dépot nodejs (aptitute update me retournait une erreur).
sudo apt-get install apt-transport-https 
- Pour nodejs et npm, l'installation ne se faisait pas j'ai dû lancer cette commande puis installer.
curl -sL https://deb.nodesource.com/setup | bash - )
- Pour nodejs-legacy, j'ai dû inscrire manuellement les dépot dans /etc/apt/sources.list ( deb http://ftp.de.debian.org/debian wheezy-backports main )
Merci pour le feedback, pour nodejs j'essaye une autre manière de l'installé et je dois dire que je l'avais pas essayé en pratique. (Mais normalement ça marche très bien)
Je vais faire des test sur une machine et je vous dis quoi! Sinon on peut toujours compiler via les sources come on faisait avant.

Et sinon merci pour le retour je commence à désespérer des scripts auto, on n'a plus aucun retour par rapport aux mises à jour des tutos.
Le fait d'oublier le / donnait un chemin tronqué au fichier donc normal ^^

Sinon j'ai toujours ce problème de streaming, il ne se lance pas..... Y'a t-il des plugins ou paquets supplémentaires à installer pour le support du html5, VLC ou divx ?