Bonjour tout le monde !
Je remercie tout d'abord l'auteur / les auteurs pour ces tutos, ils sont vraiment d'une grande aide pour les explorateurs en herbe de mon genre.
J'ai suivi ce tutoriel pour l'installation de ma seedbox : https://mondedie.fr/d/9655-tuto-installer-rutorrent-sur-debian-9-nginx-php-fpm - qui est juste excellent.
J'ai voulu ensuite suivre ce tutoriel pour l'installation de cakebox, mais là, bien qu'il soit très détaillé, il est bien trop ancien pour pouvoir fonctionner. J'avais au départ un problème de Gateway comme mon VDD, donc j'ai suivi ce que vous avez donné trois posts plus haut.
Le problème a disparu, mais maintenant je me retrouve avec :

Ce n'est pas très fonctionnel, ahah
Voici mon code :
/etc/nginx/sites-enabled/cakebox.conf
server {
listen 81;
server_name _;
# only the proxy
allow 127.0.0.1;
deny all;
root /var/www/cakebox/public/;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
#site root is redirected to the app boot script
location = / {
try_files @site @site;
}
#all other locations try other files first and go to our front controller if none of them exists
location / {
try_files $uri $uri/ @site;
}
#return 404 for all php files as we do have a front controller
location ~ \.php$ {
return 404;
}
#main configuration
location @site {
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
## use debug instead of production to get more log
fastcgi_param APPLICATION_ENV production;
## fastcgi_param HTTPS on;
}
}
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 = /DIMITRI {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_dimitri";
}
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.2-fpm.sock;
}
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 /access/dimitri/ { # meme_chemin_que_$app["cakebox.access"]
alias /home/dimitri/torrents/; # meme_chemin_que_$app["cakebox.root"]
allow all;
satisfy any;
add_header Content-Disposition "attachment";
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
}
et mon fichier dimitri.php :
<?php
/*
NOTE
if you don't want to use default, use this template
for security reason, we strongly recommand to set upload, create folder
can rename a file, delete a file, archive directory and the rss feed to false
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/dimitri/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/cakebox/dimitri/"; // Alias used in web server for direct access
$app["cakebox.language"] = "fr"; //Language of Cakebox. Could be : fr, en
$app["cakebox.host"] = "http://163.XXX.XXX.75"; //domain where cakebox is hosted
/*
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;
$app["rights.canCreate"] = true;
$app["rights.canRename"] = true;
$app["rights.canUpload"] = true;
/*
User credentials
*/
$app["user.name"] = "";
$app["user.password"] = "";
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
Sauriez-vous d'où ça vient?