• Seedbox
  • [Discussion] Installation de l'application seedbox-manager

Problème:
 ## 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 ##   
    ## début config seedbox-manager ##
    location ^~ / {
    root /var/www/seedbox-manager/public;
    include /etc/nginx/conf.d/php;
    include /etc/nginx/conf.d/cache;
    }
    ## fin config seedbox-manager ##
Ne garde que ça :
## 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 ## 
Ex.
edit: c'est crade ton fichier là, y'en a partout, faut ranger un peu ...
C'est fait pour seedbox-manager .. maintenant j'ai l'erreur 404 not found
Tu as bien relancé nginx après modif ?
Quand tu vas en /var/www/ , tu vois bien ton dossier /seedbox-manager/ ( avec la commande ls ) ?
Ex.
Problème régler pour seedbox-manager.. le problème était dans /etc/nginx/conf.d/php-manager .. j'ai rajouter /public à la ligne de /var/www/seedbox-manager .. et maintenant seedbox-manager n'apparaît que quand je vais à /seedbox-manager

Va me rester le problème de H5ai à régler

Merci !!
C'est pas mal déjà

Ton fichier de conf dans le bon sens :
server {

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

    charset utf-8;
    index index.html index.php;
    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;
    }
    
    ## debut 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;
    }
    location /PARAMORE2K {
        include scgi_params;
        scgi_pass 127.0.0.1:5001;
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paramore2k";
    }    
    ## fin config rutorrent ##

    location ^~ /partage {
	    root /var/www/base;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	#On appelle h5ai
        index index.html index.php /_h5ai/server/php/index.php;
 	#On autorise le listing des fichiers
        autoindex on;
	#Facultatif on utilise l'auth de rutorrent
       # auth_basic "Vous devez vous authentifier";
       # auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paramore2k";
    }

   ## debut config Cakebox ##
   location /cakebox/ {
        rewrite ^/cakebox(/.*)$ $1 break;
        proxy_pass [url]http://127.0.0.1:81[/url];
        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/paramore2k/ {
        alias /home/paramore2k/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    ## fin config cakebox-light ##

    ## debut 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 ##   
}
Parce que sinon tu peux pas t'y retrouver !
Ex.
9 jours plus tard
Hello,

Merci pour le manager
Par contre je n'arrive pas du tout à afficher l'espace disque d'un user, pourtant j'ai bien mis le home: /home/USER

Une idée ?
Hey, j'ai un petit soucis, après avoir foutu mon nom de domaine et teamspeak :

Config de base
ipduserveur ==>/var/www/base/
ipduserveur/seedbox-manager ==> /var/www/seedbox-manager

Maintenant j'ai :
ipduserveur ==> qui pointe sur wallou vu que le dossier /base/ n'existe plus
ipduserveur/seedbox-manager ==> qui après avoir rentrer mon user et mdp m'affiche une page complètement blanche.

Ma config sur rutorrent.conf:
        ## 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 ##
Salut,

Tu as bien /var/www/seedbox-manager?
Ouais je viens de vérifier et re-verifier y a tout dedans en plus
Poste ton rutorrent.conf en entier.
Ta redirection nom de domaine est bien faite chez ton registar?
comme prévu avec du retard ^^'
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 ##

        ## Début config TeamSpeak ##

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

        ## Fin config TeamSpeak ##

        ## config utilisateurs  ##

        location /USER1 {
            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_user1";
        }

        location /USER2 {
            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_user2";
        }
}
include /etc/nginx/conf.d/php-manager;
ls -all /etc/nginx/conf.d
Bonsoir,

le soucis provient de cette ligne (ou plutôt ce fichier), je le présume (fortement). Soit il n'existe, soit le nom est mal renseignée (juste php comme les autres).
12 jours plus tard
Bonjour
C'est mon premier message ici donc déjà merci à tous pour votre boulot, c'est vraiment génial !

J'ai un petit soucis avec seedbox manager, j'ai utilisé le script d'installation automatique sur un serveur tout propre. Mais depuis le début je n'arrive pas à accéder au manager, j'ai une page blanche (après demande d'identification).

Voilà mon fichier 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/downloads;
                include /etc/nginx/conf.d/php;
                include /etc/nginx/conf.d/cache;
		satisfy any;
		allow all;
                #On appelle h5ai
                index index.html index.php /_h5ai/server/php/index.php;
                #On autorise le listing des fichiers
                autoindex on;
                #Facultatif on utilise l'auth de rutorrent
                auth_basic "Vous devez vous authentifier";
                auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_eyotiste";
        }

	## 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 ##

	## début config sickbeard ##

	location /sickbeard {
		proxy_pass http://127.0.0.1:8081;
    		auth_basic "Sickbeard";
    		auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_eyotiste";
    		proxy_redirect off;
	    	proxy_set_header Host $http_host;
    		proxy_set_header X-Real-IP $remote_addr;
    		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

	## fin config sickbeard ##

        ## config utilisateurs  ##

        location /USER1{
            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_user1";
        }


        location /USER2 {
            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_user2";
        }
}

(ne pas faire gaffe au soucis d'encodage de caractère, dans nano y a pas de soucis)

J'ai parcouru un peu le forum, mais je n'ai pas trouvé de réponse à mon problème :s

D'avance merci !
J'avoue que je n'ai pas testé car il n'y avait pas de retour sur la solution proposée.

EDIT : j'ai testé pour voir, je tombe sur une page "File not found" à la place de la page blanche
C'est exact, il n'y a eu de retour... D'accord merci, je présumais un autre résultat.
Quelques temps plus tard, j'ai appris l'existence de ces deux fichiers. Ainsi, dans le fichier php-manager, cette ligne :
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
Il faudrait la rectifié comme tel :
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Hey guys,

thank you for your great work! I was very excited to try out this CP. Excuse me to write in english, I find it more reasonable than using google translator.

However, sadly I'm facing some trouble. My major problem is the rtorrent restart. I'm running a multi-user script which also is designed to restart rtorrent and irssi via rt stop/rt start/rt restart per user, ince my users don't have SSH access. I tried the restart method of your CP and ended up by rtorrent not being able to start until I reinstalled it. I checked all available files and ended up at /source-reboot-rtorrent/kill.c and reboot.c.
I have no clue of PHP tbh so I just tried editing it like a newb ending up at:
void rtorrent_kill (char nickname[])
    #snprintf(chaine, 100, "killall --user %s rtorrent\n", nickname);
    snprintf(chaine, 100, "rt stop --user %s\n");

#void screen_kill (char nickname[]) 
#commmented out

void reboot (char nickname[])
    #snprintf(chaine, 100, "service %s-rtorrent start\n", nickname);
    snprintf(chaine, 100, "rt start\n");
It didn't work ofc so I hope you're able to help me. Important is just that this command is run in the name of the user.

I also have some other issues which are just important when restart works. Like showing correct users space by quota limit and replacing Fileziilla with Cyberduck.

I hope you can enlighten me.
Thx in advance.
source-reboot-rtorrent/kill.c and reboot.c isn't write in php.
It's written in c, you need to compile your change with the script ./install.sh

something like that for compile
cd /var/www/seedbox-manager/source-reboot-rtorrent/
chmod +x install.sh && ./install.sh
You want restart irssi and rtorrent together??
Magicalex wrote:source-reboot-rtorrent/kill.c and reboot.c isn't write in php.
It's written in c, you need to compile your change with the script ./install.sh

something like that for compile
cd /var/www/seedbox-manager/source-reboot-rtorrent/
chmod +x install.sh && ./install.sh
You want restart irssi and rtorrent together??
Hey,

thank you for your respond. I already thought of the install.sh file and sorry for confusing C and PHP. My script restarts rtorrent and irssi each in it's own screen session. It only needs to run rt stop and then rt start. I'm just not sure what I need to change in the lines I've pasted before.

Thx again for responding.
Wagner wrote:C'est exact, il n'y a eu de retour... D'accord merci, je présumais un autre résultat.
Quelques temps plus tard, j'ai appris l'existence de ces deux fichiers. Ainsi, dans le fichier php-manager, cette ligne :
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
Il faudrait la rectifié comme tel :
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
File not foud égalment

Du coup j'ai réinstaller la seedbox avec le script (après réinstall du serveur) et tout marche. Je pense que cela venait du fait que j'avais pas télécharger le script dans le dossier /tmp mais dans un autre.
Bref tout marche maintenant ! merci de ton aide !