English | 中文
This project is used to manage users of shadowsocks/r working with another excellent shell writen by doubi, aiming to make it easier for you to share your shadowsocks/r with you firends Please be aware that there was no security tests on this project
-
1、add user
-
2、delete user
-
3、change settings
- see infos
Debian 9 only
Python3.6 required
web.py==0.40.dev1
Before you start this web, make sure you have installed another awesome shell 'ssrmu.sh'. If not, please install ssemu.
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssrmu.sh
chmod +x ssrmu.sh
bash ssrmu.sh
Switch to super user root using sudo su
Git is also required, using apt install git
And surely python3 apt install python3
Clone this project to /usr/local
using git clone https://github.com/moeik/ssr-web.git /usr/local/ssr-web
and cd
into it cd /usr/local/ssr-web
Then
- install nginx using
apt install nginx
- change the server_name in file
nginx
to your domain
server {
listen 80;
server_name yourdomain.com;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8008;
uwsgi_read_timeout 5;
auth_basic "server";
auth_basic_user_file /etc/nginx/passwd.db;
}
location /user {
include uwsgi_params;
uwsgi_pass localhost:8008;
}
}
- install apache2-utils using
apt install apache2-utils
- generate password using
htpasswd -c /etc/nginx/passwd.db username
- change the website in line 3 of file 'ssr.py' to your domain
- copy file
nginx
in to/etc/nginx/sites-enabled/
usingcp nginx /etc/nginx/sites-enabled/
- restart nginx with
nginx -s reload
- install venv and pip using
apt install python3-venv python3-pip
- create virtual-env for web.py using
python3 -m venv venv
10.start itbash start.sh
apt install python3 python3-pip python3-venv git nginx apache2-utils -y;
git clone https://github.com/moeik/ssr-web.git /usr/local/ssr-web;
cd /usr/local/ssr-web;
- change the server_name in line 3 of file
nginx
to your domain - change the website in line 3 of file
ssr.py
to your domain cp nginx /etc/nginx/sites-enabled/;
- change the username to anything you like and generate your password
htpasswd -c /etc/nginx/passwd.db username
nginx -s reload;
python3 -m venv venv;
bash start.sh;