voila mes confs:
nano /var/www/cakebox/config/****.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/***/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/***/"; // 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"] = "VLC"; // HTML5 or DIVX or VLC
/*
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"] = "";
nano /etc/nginx/sites-enabled/cakebox.conf
server {
listen 80;
server_name cakebox.****.tk; ## sous domaine obligatoire
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 /****/ {
alias /home/****/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;
}
}