Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
use cryptography
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Nov 3, 2020
1 parent eb0d20d commit 9bc04c7
Show file tree
Hide file tree
Showing 10 changed files with 419 additions and 290 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ dev/
env.sh
dev.sh
test_client.py

*.DS_Store
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

* 隧道对接视频教程: [地址](https://youtu.be/R4U0NZaMUeY)


## 使用

* 安装
Expand All @@ -23,32 +22,40 @@ pip install aioshadowsocks

* 多用户配置

aioshadowsocks 将json作为配置文件,会读取当前目录下`userconfigs.json`作为默认的配置文件
aioshadowsocks 将json作为配置文件, 会读取当前目录下 `userconfigs.json` 作为默认的配置文件

```json
``` json
{
"users": [
{
"user_id": 1,
"port": 2345,
"method": "aes-256-cfb",
"method": "none",
"password": "hellotheworld1",
"transfer": 104857600,
"speed_limit": 0
},
{
"user_id": 2,
"port": 2346,
"method": "chacha20-ietf-poly1305",
"password": "hellotheworld2",
"transfer": 104857600,
"speed_limit": 384000
}
]
}
```

同时也支持从http服务器读取配置文件,这时需要注入环境变量`SS_API_ENDPOINT`作为读取配置的api地址
* 注入环境变量
同时也支持从http服务器读取配置文件,这时需要注入环境变量 `SS_API_ENDPOINT` 作为读取配置的api地址

`export SS_API_ENDPOINT="https://xxx/com"`
* 注入环境变量

`export SS_API_ENDPOINT="https://xxx/com"`

* 启动ss服务器

```bash
``` bash
aioss run_ss_server
```

Expand Down Expand Up @@ -78,12 +85,11 @@ sudo chmod +x /usr/local/bin/docker-compose
docker-compose up
```


## 为什么要重写shadowsocks

主要想通过这个项目的推进来深入了解 `asyncio`
主要想通过这个项目的推进来深入了解 `asyncio`

另外我的一个项目: [django-sspanel](https://github.com/Ehco1996/django-sspanel) 依赖 `shadowsocksr`
另外我的一个项目: [django-sspanel](https://github.com/Ehco1996/django-sspanel) 依赖 `shadowsocksr`

但该项目已经停止开发了,所以决定重新造个轮子

Expand Down Expand Up @@ -118,7 +124,6 @@ docker-compose up

![](static/images/aead-chacha-20-ietf-poly-1305.png)


## rpc proto

``` protobuf
Expand Down
Loading

0 comments on commit 9bc04c7

Please sign in to comment.