Giter VIP home page Giter VIP logo

ssrpanel's Introduction

安装步骤

环境要求

PHP 7.1 (必须)
MYSQL 5.5 (推荐5.6+)
内存 1G+ 
磁盘空间 10G+
KVM

PHP必须开启gd、fileinfo组件

小白建议使用LNMP傻瓜安装出php7.1 + mysql(5.5以上)
手动编译请看WIKI [编译安装PHP7.1.7环境(CentOS)]
使用LNMP部署时请到/usr/local/php/etc/php.ini下搜索disable_functions,把proc_开头的函数都删掉

telegram频道:https://t.me/ssrpanel
telegram群组:https://t.me/chatssrpanel
本人未实名微信小号:dxstx77 (请勿任何转账、红包行为)

演示站(已挂,求捐赠)

http://www.ssrpanel.com
用户名:admin
密码:123456

VPS推荐

部署面板必须得用到VPS
强烈推荐使用1G以上内存的KVM架构的VPS
做节点则只需要256M+内存的KVM即可
(节点强烈不建议使用OVZ,一无法加速二容易崩溃,512M以下内存的容易经常性宕机,即便是KVM)

打赏作者

如果你觉得这套代码好用,微信扫一下进行打赏
在使用过程中有发现问题就提issue,有空我会改的
持续开发,喜欢请star一下,如果你发现什么好玩的东西,也请发到issue

打赏作者

打赏名单

昵称 金额
Law-杰 ¥10
Err ¥51
緃噺開始 ¥5
【要求匿名】 ¥267
、无奈 ¥5
Sunny Woon ¥10
aazzpp678 ¥26
风云_1688 ¥15
Royal ¥25
bingo ¥8
Eason ¥10
【要求匿名】 ¥150
暮风 ¥20
huigeer ¥10
真想悠哉 ¥88
osmond ¥10
风云_1688 ¥20
穆飞 ¥10

这些捐赠的用途:

  • 1.30刀买了1台VPS做开发测试用(已被BAN)
  • 2.30刀买了一个Beyond Compare 4 Standard的正版激活码
  • 3.感谢izhangxm提交了自定义等级的分支代码
  • 4.感谢Hao-Luo提供的节点一键部署脚本

拉取代码

cd /home/wwwroot/
git clone https://github.com/ssrpanel/ssrpanel.git

先配置数据库

mysql 创建一个数据库,然后自行导入sql\db.sql
config\database.php 中的mysql选项自行配置数据库

配置一下

cd ssrpanel/
php composer.phar install
php artisan key:generate
chown -R www:www storage/
chmod -R 777 storage/

NGINX配置文件加入

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

编辑php.ini

找到php.ini
vim /usr/local/php/etc/php.ini

搜索disable_function
删除proc_开头的所有函数

出现500错误

理论上操作到上面那些步骤完了应该是可以正常访问网站了,如果网站出现500错误,请看WIKI,很有可能是fastcgi的错误
请看WIKI:https://github.com/ssrpanel/ssrpanel/wiki/%E5%87%BA%E7%8E%B0-open_basedir%E9%94%99%E8%AF%AF
修改完记得重启NGINX和PHP-FPM

重启NGINX和PHP-FPM

service nginx restart
service php-fpm restart

定时任务(所有自动发邮件的地方都要用到,所以请务必配置)

编辑crontab
crontab -e

然后加入如下(请自行修改ssrpanel路径)
* * * * * php /home/wwwroot/ssrpanel/artisan schedule:run >> /dev/null 2>&1

发送邮件配置

config\mail.php 修改其中的配置

日志分析(目前仅支持单机单节点)

找到SSR服务端所在的ssserver.log文件
进入ssrpanel所在目录,建立一个软连接,并授权
cd /home/wwwroot/ssrpanel/public/storage/app/public
ln -S ssserver.log /root/shadowsocksr/ssserver.log
chown www:www ssserver.log

SSR部署

手动部署
cp server/ssr-3.4.0.zip /root/
cd /root
unzip ssr-3.4.0.zip
cd shadowsocksr
sh initcfg.sh
把 userapiconfig.py 里的 API_INTERFACE 设置为 glzjinmod
把 user-config.json 里的 connect_verbose_info 设置为 1
配置 usermysql.json 里的数据库链接,NODE_ID就是节点ID,对应面板后台里添加的节点的自增ID,所以请先把面板搭好,搭好后进后台添加节点
一键自动部署
wget -N --no-check-certificate https://raw.githubusercontent.com/ssrpanel/ssrpanel/master/server/deploy_ssr.sh;chmod +x deploy_ssr.sh;./deploy_ssr.sh

更新代码

进到ssrpanel目录下执行:
git pull

如果每次更新都会出现数据库文件被覆盖,请先执行一次:
chmod a+x fix_git.sh && sh fix_git.sh

如果本地自行改了文件,想用回原版代码,请先备份好 config/database.php,然后执行以下命令:
chmod a+x update.sh && sh update.sh

网卡流量监控一键脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/ssrpanel/ssrpanel/master/server/deploy_vnstat.sh;chmod +x deploy_vnstat.sh;./deploy_vnstat.sh

单端口多用户

编辑节点的 user-config.json 文件:
vim user-config.json

将 "additional_ports" : {}, 改为以下内容:
"additional_ports" : {
    "80": {
        "passwd": "统一认证密码", // 例如 SSRP4ne1,不要出现除大小写字母数字以外的任何字符
        "method": "统一认证加密方式", // 例如 aes-128-ctr
        "protocol": "统一认证协议", // 例如 auth_aes128_md5 或者 auth_aes128_sha1,目前只有这两种
        "protocol_param": "#",
        "obfs": "tls1.2_ticket_auth_compatible",
        "obfs_param": ""
    },
    "443": {
        "passwd": "统一认证密码",
        "method": "统一认证加密方式",
        "protocol": "统一认证协议",
        "protocol_param": "#",
        "obfs": "tls1.2_ticket_auth_compatible",
        "obfs_param": ""
    }
},

保存,然后重启SSR服务。
客户端设置:

远程端口:80
密码:password
加密方式:aes-128-ctr
协议:auth_aes128_md5
混淆插件:tls1.2_ticket_auth
协议参数:1026:@123 (SSR端口:SSR密码)

或

远程端口:443
密码:password
加密方式:aes-128-ctr
协议:auth_aes128_sha1
混淆插件:tls1.2_ticket_auth
协议参数:1026:@123 (SSR端口:SSR密码)

经实测账号的协议可以是:auth_chain_a,建议节点后端使用auth_sha1_v4_compatible,方便兼容

注意:如果想强制所有账号都走80、443这样自定义的端口的话,记得把 user-config.json 中的 additional_ports_only 设置为 true
警告:经实测单端口下如果用锐速没有效果,很可能是VPS供应商限制了这两个端口
提示:配置单端口最好先看下这个WIKI,防止才踩坑:https://github.com/ssrpanel/ssrpanel/wiki/%E5%8D%95%E7%AB%AF%E5%8F%A3%E5%A4%9A%E7%94%A8%E6%88%B7%E7%9A%84%E5%9D%91

说明

1.多节点账号管理面板
2.需配合SSR 3.4 Python版后端使用
3.强大的管理后台、美观的界面、简单易用的开关、支持移动端自适应
4.内含简单的购物、优惠券、流量兑换、邀请码、推广返利&提现、文章管理、工单等模块
5.节点支持分组,不同级别的用户可以看到不同级别分组的节点
6.SS配置转SSR配置,轻松一键导入SS账号
7.流量日志、单机单节点日志分析功能,知道用户最近都看了哪些网站
8.强大的定时定时任务
9.所有邮件投递都有记录
10.账号临近到期、流量不够都会自动发邮件提醒,自动禁用到期、流量异常的账号
11.后台一键添加加密方式、混淆、协议、等级
12.强大的后台一键配置功能
13.屏蔽常见爬虫
14.支持单端口多用户
15.账号、节点24小时和近30天内的流量监控

预览(这个是第一版的预览,已过时)

Markdown Markdown Markdown Markdown Markdown Markdown Markdown Markdown Markdown Markdown

ssrpanel's People

Contributors

scyllaly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.