magicalex / seedbox-manager

此包已被弃用且不再维护。未建议替代包。

用于管理您的seedbox的Web应用程序

安装数: 27,908

依赖者: 0

建议者: 0

安全: 0

星标: 48

关注者: 11

分支: 14

开放问题: 2

语言:HTML

类型:项目

v3.0.1 2017-03-29 10:29 UTC

This package is auto-updated.

Last update: 2022-02-01 12:47:58 UTC


README

StyleCI

seedbox-manager是一个用于管理您的seedbox的Web应用程序。

  • 重启rtorrent会话
  • 导航栏中的自定义链接
  • 统计服务器(负载平均,运行时间)
  • 下载filezilla和transdroid的文件配置
  • 管理员区域
  • 用于http基本身份验证的注销

安装

注意:需要root权限

cd /var/www
git clone https://github.com/Magicalex/seedbox-manager.git
cd seedbox-manager
composer install
chown -R www-data: /var/www/seedbox-manager
cd source
chmod +x install.sh && ./install.sh

配置

示例:Web服务器nginx

server {
    listen 80 default_server;
    server_name _;

    charset utf-8;
    index index.php;

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

    auth_basic "seedbox-manager";
    auth_basic_user_file "/etc/nginx/passwd/password";

    root /var/www;

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

在类似于http://domain.tld/seedbox-manager的uri中

server {
    listen 80 default_server;
    server_name _;

    charset utf-8;
    index index.html index.php;

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

    root /var/www;

    location /seedbox-manager {
        try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
    }

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

首次连接

使用您的rutorrent ID连接到界面。这将自动为当前用户生成配置文件。./seedbox-manager/conf/users/{utilisateur}/config.ini

要获得管理员权限

vi /var/www/seedbox-manager/conf/users/{utilisateur}/config.ini

并将admin = no替换为admin = yes

开发

echo "127.0.0.1 sbm.dev" >> /etc/hosts
php -S sbm.dev:8080