Skip to content

Commit

Permalink
Merge pull request #268 from Ehco1996/dev
Browse files Browse the repository at this point in the history
dev2Master
  • Loading branch information
Ehco1996 authored Feb 8, 2020
2 parents bd785f1 + 4c87391 commit d803587
Show file tree
Hide file tree
Showing 98 changed files with 2,784 additions and 1,618 deletions.
10 changes: 0 additions & 10 deletions .dockerignore

This file was deleted.

2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ apps/Alipay_pub.pem
static/admin/
static/jet/
static/range_filter/
*.log
*.log
go.mod
23 changes: 10 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@

FROM python:3.6-alpine
FROM python:3.7-alpine

LABEL Name=django-sspanel Version=0.0.3
LABEL Name=django-sspanel

COPY requirements.txt /tmp/requirements.txt

RUN apk update && apk add --no-cache gcc linux-headers \
musl-dev python3-dev mariadb-dev jpeg-dev && \
pip install --no-cache-dir -r /tmp/requirements.txt && \
apk del gcc linux-headers \
musl-dev python-dev jpeg-dev && \
rm -Rf ~/.cache

# # 如果是第一次运行需要手动exec进去执行如下命令
# # python3 manage.py collectstatic --no-input && \
# # python3 manage.py makemigrations && \
# # python3 manage.py migrate --run-syncdb && \
RUN set -e; \
apk update \
&& apk add --virtual .build-deps libffi-dev build-base \
# TODO workaround start
&& apk add mariadb-dev \
# TODO workaround end
&& pip install --no-cache-dir -r /tmp/requirements.txt \
&& apk del .build-deps
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# django-sspanel
用diango开发的全新的shadowsocks网络面板

专用后端:[地址:](https://github.com/Ehco1996/shadowsocksr)
专用SS后端:[地址](https://github.com/Ehco1996/aioshadowsocks)

专用V2ray后端:[地址](https://github.com/Ehco1996/v2scar)

节点对接教程: [地址](https://github.com/Ehco1996/django-sspanel/wiki/%5B%E6%9C%80%E6%96%B0%E6%95%99%E7%A8%8B-2020-2-8%5D%E5%AF%B9%E6%8E%A5%E5%90%8E%E7%AB%AF%E8%8A%82%E7%82%B9%E6%95%99%E7%A8%8B)

Telegram group : [invite link](https://t.me/Ehcobreakwa11)

Expand All @@ -10,7 +14,7 @@ Wiki: [Wiki](https://github.com/Ehco1996/django-sspanel/wiki)

## 项目说明

* 后端支援(shadowsocksr/shadowsocks)
* 后端支援(shadowsocks/V2ray
* 注册采用邀请系统,告别不良用户
* 统一完善的后台管理界面
* 完善的商品购买逻辑
Expand Down Expand Up @@ -47,11 +51,6 @@ Wiki: [Wiki](https://github.com/Ehco1996/django-sspanel/wiki)
![](https://user-images.githubusercontent.com/24697284/53059234-14120a00-34f1-11e9-8937-ea56cf4077ed.png)


* Django-jet 后台:

![](https://user-images.githubusercontent.com/24697284/53059235-14120a00-34f1-11e9-81ea-69bbb2e445d2.png)


## 部署教程:

部署需要vps的支持
Expand Down
15 changes: 15 additions & 0 deletions apps/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@
views.UserSSConfigView.as_view(),
name="user_ss_config",
),
path(
"user_vmess_config/<int:node_id>/",
views.UserVmessConfigView.as_view(),
name="user_vmess_config",
),
path(
"vmess_server_config/<int:node_id>/",
views.VmessServerConfigView.as_view(),
name="vmess_server_config",
),
path(
"relay_server_config/<int:node_id>/",
views.RelayServerConfigView.as_view(),
name="relay_server_config",
),
# 支付
path("orders", views.OrderView.as_view(), name="order"),
path("callback/alipay", views.ailpay_callback, name="alipay_callback"),
Expand Down
Loading

0 comments on commit d803587

Please sign in to comment.