bonjour à tous,
j'essais d'installer cakebox-light avec : https://mondedie.fr/d/5314-Tuto-Installer-Cakebox-light-nginx
Avant cela j'ai utilisé le tuto : https://mondedie.fr/d/5302-Tuto-Installer-ruTorrent-sur-Debian-8-nginx-php-fpm
Donc quand j'arrive a l'étape : On redémarre nginx du tuto cakebox,
j'ai ce message d'erreur : Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
j'ai 2 utilisateurs sur rutorrent qui fonctionne très bien, mais dans l'installation de cakebox j'en ai mis 1 seul (clobox)
voici mes fichiers de configuration
Merci d'avance
/var/www/cakebox/config/clobox.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/clobox/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/clobox/"; // 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";
/*
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"] = true;
$app["rights.canDelete"] = true;
/etc/nginx/sites-enabled/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.conf;
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;
}
}
/etc/nginx/sites-enabled/seedbox.conf
server {
listen 80 default_server;
server_name _;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
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;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
root /var/www;
location = /50x.html {
root /usr/share/nginx/html;
}
location = /favicon.ico {
access_log off;
log_not_found off;
}
location /rutorrent {
try_files $uri $uri/ /index.html;
}
location ~ ^/rutorrent/(conf|share)/(.+)$ {
deny all;
}
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location = /CLOBOX {
include scgi_params;
scgi_pass 127.0.0.1:5000;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_clobox";
}
location = /SERGEBOX {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sergebox";
}
location / {
try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
}
location ^~ /assets {
alias /var/www/seedbox-manager/assets;
}
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
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/clobox/ {
alias /home/clobox/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
}