/ssr-web

一个web端的简约流控

Primary LanguageHTMLGNU Affero General Public License v3.0AGPL-3.0

Shadowsocks/r web manager

English | 中文

Description

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

Functions

Admin user:
  • 1、add user

  • 2、delete user

  • 3、change settings

Visitor: (with a suffix)(/user)
  • see infos

System supported

Debian 9 only

Language

Python3.6 required

Web Framework

web.py==0.40.dev1

Usage

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

Method 1

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

  1. install nginx using apt install nginx
  2. 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;
	}
}
  1. install apache2-utils using apt install apache2-utils
  2. generate password using htpasswd -c /etc/nginx/passwd.db username
  3. change the website in line 3 of file 'ssr.py' to your domain
  4. copy file nginx in to /etc/nginx/sites-enabled/ using cp nginx /etc/nginx/sites-enabled/
  5. restart nginx with nginx -s reload
  6. install venv and pip using apt install python3-venv python3-pip
  7. create virtual-env for web.py using python3 -m venv venv
    10.start it bash start.sh
Or Method 2
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;
  1. change the server_name in line 3 of file nginx to your domain
  2. change the website in line 3 of file ssr.py to your domain
  3. cp nginx /etc/nginx/sites-enabled/;
  4. 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;