一个比较简单的 ss panel
采用全页面的 Ajax请求
支持PHP5.2+ ~ PHP7 (需要 PDO支持模块, nginx url重写)
$ git clone https://github.com/sendya/shadowsocks-panel.git
$ cd shadowsocks-panel
$ composer install
(暂无法支持phinx自动导入MySQL数据库)
$ cp ./Data/Config.simple.php ./Data/Config.php
$ vim ./Data/Config.php
$ chmod -R 777 ./Data/
$ mysql -uroot -p
create database sspanel;
use sspanel;
source /你的sspanel目录/Data/Shadowsocks-planel-DB.sql
(不配置只能访问 首页,其余页面全部404!注)
if (!-e $request_filename) {
rewrite (.*) /index.php last;
}
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
有两个版本,请选其一,还有一个golang manyuser的。 其实也支持最初始的 manyuser版本,请自行修改sql查询字符串即可
# 版本1 (支持udp, 有点小问题,基本上一天会炸一次线程导致连不上数据库无法同步)
$ git clone -b manyuser https://github.com/sendya/shadowsocks-rm.git
$ cd shadowsocks-rm/shadowsocks
# 版本2 (原 shadowsocks py manyuser)
$ gi clone -b manyuser https://github.com/sendya/shadowsocks.git
$ cd shadowsocks/shadowsocks
$ yum install m2crypto python-setuptools
$ easy_install pip
$ apt-get install python-pip python-m2crypto
pip install cymysql
$ vim ./config.py
$ python servers.py
if your in china , please edit composer.json
content, add content to composer config
,
"repositories": {
"packagist": {
"type": "composer",
"url": "http://packagist.phpcomposer.com"
}
}
提供一个 systemd
服务脚本,写进 /etc/systemd/system/shadowsocks-py.service
即可,记得修改其中的运行组以及运行路径
[Unit]
Description=Shadowsocks Proxy Services(Py ManyUser)
After=syslog.target
After=network.target
[Service]
Type=simple
User=shadowsocks
Group=shadowsocks
WorkingDirectory=/home/shadowsocks
ExecStart=/usr/bin/python /home/shadowsocks/shadowsocks/server.py -c /home/shadowsocks/shadowsocks/config.json
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
Environment="USER=shadowsocks","HOME=/home/shadowsocks"
[Install]
WantedBy=multi-user.target
框架基于 KK-Framework。
使用SS服务端:shadowsocks-manyuser
shadowsocks-manyuser :
https://github.com/sendya/shadowsocks-rm/tree/manyuser
2016.03.17 :
测试版发布.
2016.02.11~03.03 :
Added Mailer
ForgePassword is available
Node info send to Mail
2016.02.05~02.06 :
Update sql(default db insert.)
Add admin page
Add nodeList/nodeAdd/nodeModify/nodeDelete
2016.01.13~01.27 :
Fix bug
Login diff
Add migr
create Alpha.01 version.
2016.01.02 :
Create install setp
Fix bug
2015.12.14 :
Fix admin/ router
Add user power(admin table)
Update sql
2015.12.09 :
Add register page auto value func
exp: http://local.dev/Auth/login?invite=9973C1D6A6557CCF#register
(?invite=your invite code)
Fix login/register page Button disabled check
----------------
body on ajax load
2015.12.08 :
upport PHP7.
Fix user register
Fix inviteCode check
Fix inivte update info
Fix member lastConnTime
...
Add Message model & db sql
Fix member node number count
2015.11.29 :
Add page invite, changepassword
2015.11.27 :
Add page template.
2015.11.05 :
Add Invite model.