Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v2023.12 #923

Closed
wants to merge 330 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
330 commits
Select commit Hold shift + click to select a range
e35357f
feat: update clash rules
Ehco1996 Mar 19, 2021
97a87bd
update admin
Ehco1996 Mar 24, 2021
77aa8fb
feat: opt templates
Ehco1996 Mar 26, 2021
324a119
'Refactored by Sourcery'
Apr 6, 2021
0b401ee
feat: better cn template
Ehco1996 Apr 6, 2021
ee8fa08
feat: update rules
Ehco1996 Apr 9, 2021
d707f7a
build(deps): bump django from 3.1.7 to 3.2
dependabot-preview[bot] Apr 7, 2021
617232f
build(deps): bump django-debug-toolbar from 3.2 to 3.2.1
dependabot-preview[bot] Apr 15, 2021
8d0d01e
build(dockerfile makefile poetry.lock pyproject.toml): change require…
Gkirito Apr 19, 2021
132e835
feat: async send email when reset passwd
Ehco1996 Apr 24, 2021
8dae4ac
fix: fix debug image
Ehco1996 Apr 24, 2021
4495569
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 29, 2021
0fb6fb1
ci: add lint && update templates
Ehco1996 Apr 29, 2021
4655200
fix: fix ci
Ehco1996 Apr 29, 2021
a4a9e93
fix: fix readme badge
Ehco1996 Apr 30, 2021
0a7d49f
fix: fix debug image
Ehco1996 May 4, 2021
cb8f66d
feat: add proxy node enable_direct #514
Ehco1996 May 4, 2021
04e07d5
fix: fix for lint
Ehco1996 May 4, 2021
81ae1ce
fix: fix badge
Ehco1996 May 4, 2021
ba236b4
fix: add jquery.js when user not authed
Ehco1996 May 4, 2021
4c9f5f0
feat: filter pay request
Ehco1996 May 5, 2021
96451d0
feat: add x_forwarded_for in uwsgi log
Ehco1996 May 5, 2021
473bc51
ci: build debug code on branch
Ehco1996 May 5, 2021
21f0dd8
fix: fix uwsgi.ini
Ehco1996 May 5, 2021
6baba5d
feat: add ip/tcp log in UserTrafficLog #510 (#521)
Ehco1996 May 6, 2021
6d16da7
chore: add ssr support
Ehco1996 May 9, 2021
9784118
build(deps): bump django-simpleui from 2021.4.3 to 2021.5.11 (#527)
dependabot[bot] May 14, 2021
62d0759
fix: fix prod config
Ehco1996 May 21, 2021
2a63f66
feat: add register button
Ehco1996 May 23, 2021
4648586
build(deps): bump django-simpleui from 2021.5.11 to 2021.6.1
dependabot[bot] May 25, 2021
921193e
fix: fix docker file
Ehco1996 May 31, 2021
1f56bba
build(deps): bump django-simpleui from 2021.6.1 to 2021.6.2
dependabot[bot] Jun 4, 2021
97d5143
feat: add sub_uid #432
Ehco1996 Jun 6, 2021
81974f4
fix: add migrate scripts to user.uid
Ehco1996 Jun 6, 2021
609952e
fix: fix add new user
Ehco1996 Jun 6, 2021
4ae458b
build(deps): bump sentry-sdk from 1.0.0 to 1.1.0
dependabot[bot] Jun 6, 2021
035aca1
build(deps): bump django from 3.2 to 3.2.4
dependabot[bot] Jun 6, 2021
ced6bbd
build(deps): bump celery from 5.0.5 to 5.1.0
dependabot[bot] Jun 6, 2021
6773ee9
build(deps-dev): bump black from 20.8b1 to 21.6b0
dependabot[bot] Jun 15, 2021
252f407
feat(yamls/clash.yml tun.yml): add tun config for Clash for Windows
Gkirito Jul 1, 2021
3832e74
feat: better order number
Ehco1996 Jul 10, 2021
971f1fd
build(deps): bump django-simpleui from 2021.6.2 to 2021.7.8
dependabot[bot] Jul 8, 2021
bf6bd52
chore: remove print
Ehco1996 Jul 19, 2021
408f842
dep: bump mysql to 5.7
Ehco1996 Jul 23, 2021
c9e45db
feat: support custom trade info
Ehco1996 Jul 25, 2021
b0cf683
build(deps): bump django-simpleui from 2021.7.8 to 2021.8.1
dependabot[bot] Jul 21, 2021
c9f8cd9
feat: support ehco config #551
Ehco1996 Aug 14, 2021
96065a2
doc: update readme
Ehco1996 Aug 30, 2021
001bd46
feat: add rule_name
Ehco1996 Aug 31, 2021
6857e73
fix: fix get_user_clash_config
Ehco1996 Aug 31, 2021
c4ffdfe
build(deps): bump django-simpleui from 2021.8.1 to 2021.8.17
dependabot[bot] Aug 17, 2021
2a3381d
doc: add 顿顿饭
Ehco1996 Oct 1, 2021
4375e85
feat: support ehco in proxy node
Ehco1996 Oct 20, 2021
3cbf582
ci: auto build runtime when dep update
Ehco1996 Oct 28, 2021
28edeb4
build(deps): bump celery from 5.1.0 to 5.1.2
dependabot[bot] Sep 25, 2021
394d6b3
build(deps): bump django-simpleui from 2021.8.17 to 2021.10.15
dependabot[bot] Oct 29, 2021
7cfb27c
build(deps): bump django from 3.2.1 to 3.2.9
dependabot[bot] Nov 1, 2021
f33554f
build(deps): bump sqlparse from 0.4.1 to 0.4.2
dependabot[bot] Nov 1, 2021
817c347
build(deps): bump urllib3 from 1.26.4 to 1.26.5
dependabot[bot] Nov 1, 2021
239263a
build(deps): bump django-simpleui from 2021.10.15 to 2021.11.5
dependabot[bot] Nov 26, 2021
9f39e64
feat: redirect in admin view
Ehco1996 Dec 6, 2021
3b75d7b
build(deps): bump django-simpleui from 2021.11.5 to 2021.12.6
dependabot[bot] Dec 6, 2021
cb65bd6
build(deps): bump django-simpleui from 2021.12.6 to 2021.12.7
dependabot[bot] Dec 7, 2021
b00ba52
去除不必要的空格
taotecode Dec 9, 2021
6c861d8
build(deps): bump django-simpleui from 2021.12.7 to 2022.1
dependabot[bot] Dec 13, 2021
ace94b6
chore: remove unused admin
Ehco1996 Dec 21, 2021
edb5ee9
revert admin
Ehco1996 Dec 21, 2021
4b25d84
Update docker-compose.yml
couldntaccept Dec 28, 2021
c069a4b
build(deps): bump django from 3.2.9 to 3.2.10
dependabot[bot] Dec 21, 2021
ae902b1
feat: megre ss config with relay
Ehco1996 Jan 19, 2022
94568fd
fix node config
Ehco1996 Jan 19, 2022
cd26aa2
chore: clean todo in codes
Ehco1996 Feb 2, 2022
ff63850
doc: update rules
Ehco1996 Feb 2, 2022
26d5c3f
doc: fix markdown fmt
Ehco1996 Feb 2, 2022
fee79bd
doc: fix again
Ehco1996 Feb 2, 2022
0cfcf1c
fix: fix xray listen port
Ehco1996 Feb 2, 2022
4a5de74
ci: fix tag image build
Ehco1996 Feb 3, 2022
f45f185
build(deps): bump django-simpleui from 2022.1 to 2022.2.16
dependabot[bot] Feb 16, 2022
b6e67b8
chore: fix clash tun rules
Ehco1996 Mar 5, 2022
da34410
chore: use minmal tun conifg
Ehco1996 Mar 5, 2022
2889191
doc: add docker pull badge
Ehco1996 Mar 8, 2022
dd6c9d6
savework
Ehco1996 Mar 12, 2022
9397e54
rename
Ehco1996 Mar 19, 2022
f72b10e
close #644
Ehco1996 Mar 19, 2022
5ab5465
refine code
Ehco1996 Mar 19, 2022
ba3d9d0
fix create_admin
Ehco1996 Mar 19, 2022
d674b91
chore: remove some dead code
Ehco1996 Mar 19, 2022
8c908d1
build(deps): bump django-simpleui from 2022.2.16 to 2022.4.9
dependabot[bot] Apr 11, 2022
8faddae
chore: add rust in ci
Ehco1996 Apr 15, 2022
49ce74c
chore: fix again
Ehco1996 Apr 15, 2022
4215662
chore: fuck ci
Ehco1996 Apr 15, 2022
3ac20e8
fine
Ehco1996 Apr 15, 2022
b36fef4
fuck ci
Ehco1996 Apr 15, 2022
505b403
Create FUNDING.yml
Ehco1996 Apr 29, 2022
8a61f29
Update docker-compose.yml
whirlwind110 May 19, 2022
b6500d7
Update .env.sample
whirlwind110 May 19, 2022
5f5c684
Update userinfo.html
whirlwind110 May 26, 2022
a001cb3
Update .env.sample
whirlwind110 May 26, 2022
b41cd17
Update base.html
whirlwind110 May 26, 2022
9d3dbcf
Update sites.py
whirlwind110 May 26, 2022
75d7e5c
build(deps): bump django-simpleui from 2022.4.9 to 2022.7.29
dependabot[bot] Jul 29, 2022
6c2a298
chore: add cd
Ehco1996 Aug 27, 2022
450223b
chore: fix ci
Ehco1996 Aug 27, 2022
de0700c
admin: delete user list
Ehco1996 Aug 27, 2022
6dec26a
proxy: fix traffic log
Ehco1996 Aug 27, 2022
e8ad418
chore: delete deadcode
Ehco1996 Aug 27, 2022
a0797cb
feat: support trojan node
Ehco1996 Aug 28, 2022
9ab561f
sub: user clash providers as normal sub
Ehco1996 Aug 29, 2022
04efce2
ui: opt user info page
Ehco1996 Aug 30, 2022
b30939b
sub: revert ss sub link back
Ehco1996 Aug 31, 2022
b78baca
ehco: fix get_ehco_server_config
Ehco1996 Aug 31, 2022
237c889
ehco: fix ehco_relay_port
Ehco1996 Aug 31, 2022
1561da4
clash: add 流媒体
Ehco1996 Sep 10, 2022
fa4ef01
sub: fix clash providers
Ehco1996 Sep 10, 2022
e191016
node: fix proxy node remark
Ehco1996 Sep 11, 2022
4cc4d15
ui: fix node info view
Ehco1996 Sep 11, 2022
34f4a09
ehco: support mtcp
Ehco1996 Sep 14, 2022
14c68e6
ehco: add ehco log level
Ehco1996 Sep 15, 2022
270bc7c
ehco: add xray log level to ehco config
Ehco1996 Sep 16, 2022
02edfb7
xray: only allow http1.1 fallback
Ehco1996 Sep 16, 2022
1bf4360
admin: add provider_remark
Ehco1996 Sep 16, 2022
f7219c2
ui: merge many pages
Ehco1996 Sep 23, 2022
76be93e
ui: fix menu order
Ehco1996 Sep 23, 2022
3761479
*: add ipython in runtime
Ehco1996 Sep 24, 2022
800719b
ci: fix lint
Ehco1996 Sep 24, 2022
5e61b8f
doc: update readme
Ehco1996 Sep 24, 2022
7b7deb8
ticket: add close_stale_tickets_task
Ehco1996 Sep 24, 2022
a6e2523
ci: fix code ci
Ehco1996 Sep 24, 2022
700d62d
cron: fix make_up_lost_order_task
Ehco1996 Sep 24, 2022
1f9371b
*: improve code
Ehco1996 Sep 24, 2022
30387d1
task: fix clean_traffic_log_task
Ehco1996 Sep 24, 2022
b0b295b
sub: refine sub center
Ehco1996 Sep 26, 2022
4dd5567
sub: fix sub herf
Ehco1996 Sep 26, 2022
e011fd6
ci: add workflow_dispatch:
Ehco1996 Sep 26, 2022
1270c13
ci: fix ci
Ehco1996 Sep 26, 2022
8cb4589
sub: add all option
Ehco1996 Sep 26, 2022
2eeb389
sub: fix shadowrocket sub
Ehco1996 Sep 26, 2022
de7bf1d
feat: auto close 3days tickets
Ehco1996 Sep 29, 2022
f7fe89d
support quanx sub
Ehco1996 Sep 29, 2022
8ae2cab
'Refactored by Sourcery'
Sep 29, 2022
9c2d0b2
fix ci
Ehco1996 Sep 29, 2022
3baefb4
fix lint
Ehco1996 Sep 29, 2022
76e8f72
*: fix for source ai
Ehco1996 Sep 30, 2022
45445ef
*: opt admin
Ehco1996 Oct 2, 2022
ce0462d
admin: add link addr
Ehco1996 Oct 4, 2022
7f5f97e
feat: subscribe return filename
sljeff Oct 11, 2022
a1cf152
fix: wrong space in attachment
sljeff Oct 11, 2022
a78b981
remove node list from admin
Ehco1996 Oct 11, 2022
363ad28
feat: support reset sub link
Ehco1996 Oct 18, 2022
93d804c
feat: add active node count
Ehco1996 Oct 21, 2022
0b1a873
feat: support TG login
Ehco1996 Oct 30, 2022
2b66e36
*: fix blank tg settings
Ehco1996 Oct 30, 2022
136877e
clash: fix default proxy providers interval
Ehco1996 Oct 31, 2022
bca03f0
build(deps): bump django from 3.2.15 to 4.1.3
dependabot[bot] Nov 1, 2022
37c1677
*: bump dev deps
Ehco1996 Nov 11, 2022
bed0c3e
api: fix get ehco relay config when enable udp
Ehco1996 Nov 19, 2022
2d4806e
delete some todo
Ehco1996 Nov 19, 2022
ae07d32
ehco: skip not enable rule for proxy node
Ehco1996 Nov 19, 2022
a7dee6b
ehco: fix relay server
Ehco1996 Nov 19, 2022
c3e4c53
*: less check to traffic table
Ehco1996 Nov 19, 2022
5bc7d9f
mi: fix lost migrations
Ehco1996 Nov 19, 2022
513be15
*: fix pendulum breaking change
Ehco1996 Nov 19, 2022
50737ea
*: fix lint
Ehco1996 Nov 19, 2022
95189ac
*: add more field to admin
Ehco1996 Nov 19, 2022
2ff8d9b
chore: resolve on todo item
Ehco1996 Nov 26, 2022
fd3abfb
build(deps): bump django-simpleui from 2022.7.29 to 2022.12.12
dependabot[bot] Dec 12, 2022
0f4b002
close #764
Ehco1996 Dec 24, 2022
508b156
doc: remove donate
Ehco1996 Dec 24, 2022
60c77e8
doc: fix badge
Ehco1996 Dec 24, 2022
3cb87de
feat: merge the same port relay rules
Ehco1996 Dec 24, 2022
c034833
sub: filter the rule that have same relay port
Ehco1996 Dec 24, 2022
df2abdd
relay: fix merge rules
Ehco1996 Dec 24, 2022
75292e6
chore: remove quantumultx sub
Ehco1996 Dec 31, 2022
f402771
chore: remove quantumultx in ui
Ehco1996 Dec 31, 2022
8f8f213
clash: delete streaming rules
Ehco1996 Jan 30, 2023
390373a
clash: fix normal rules
Ehco1996 Jan 30, 2023
db2ccbe
feat: add enable udp to proxy node close #781
Ehco1996 Feb 1, 2023
2279b13
sub: sort clash providers
Ehco1996 Feb 2, 2023
cbf33a6
feat: dyn listen host with config close #782
Ehco1996 Feb 5, 2023
c7cacd6
fix: fix get proxy node config
Ehco1996 Feb 5, 2023
1d643c6
fix: fix typo
Ehco1996 Feb 5, 2023
5469601
fix: fix get_relay_rules_configs
Ehco1996 Feb 9, 2023
9888320
build(deps): bump django-simpleui from 2022.12.12 to 2023.3.1
dependabot[bot] Feb 20, 2023
a7f8e88
xray: add ssr/Vmess/vless proxy type (#790)
jessemoe Feb 27, 2023
5a945af
build(deps-dev): bump autoflake from 1.7.7 to 2.0.2 (#800)
dependabot[bot] Mar 14, 2023
e88d4dd
build(deps-dev): bump isort from 5.10.1 to 5.12.0 (#780)
dependabot[bot] Mar 15, 2023
7e86226
*: fix n+1 query
Ehco1996 Mar 27, 2023
d48db5a
fix: should not use eval
Ehco1996 Jul 21, 2023
0fdd832
clash: change rule set provider
Ehco1996 Aug 8, 2023
19e2dea
*: fix typo
Ehco1996 Aug 8, 2023
f6ed68d
admin: support search uid
Ehco1996 Aug 8, 2023
a37a0e4
feat: support record node bandwidth
Ehco1996 Aug 18, 2023
0fef43c
openapi: init spec (#865) close #864
Ehco1996 Sep 6, 2023
b080b4a
*: fix debug import
Ehco1996 Sep 6, 2023
7b87f35
*: fix stale ci
Ehco1996 Sep 6, 2023
f22348c
doc: update readme
Ehco1996 Sep 8, 2023
e3053c6
sub: fix gen sub link
Ehco1996 Sep 19, 2023
01e33df
*: fix templates names
Ehco1996 Sep 19, 2023
4d6ac45
*: fix tg login
Ehco1996 Sep 19, 2023
aa85ac6
*: improve code
Ehco1996 Sep 19, 2023
8a03089
chore: support sentry env
Ehco1996 Sep 19, 2023
583d9d8
*: fix typo
Ehco1996 Sep 19, 2023
27a5907
chore: remove funding
Ehco1996 Sep 19, 2023
85ab6f6
*: remove RelayRule admin
Ehco1996 Oct 6, 2023
ac7fc6d
relay: all empty web token
Ehco1996 Oct 6, 2023
11234bc
clash: fix final rules
Ehco1996 Oct 6, 2023
4e79c3f
feat: support custom logo url
Ehco1996 Oct 7, 2023
55a9553
chore: add cors-headers
Ehco1996 Oct 7, 2023
09c8e7e
chore: fix runtime image
Ehco1996 Oct 7, 2023
258ece2
*: fix mw order
Ehco1996 Oct 7, 2023
04d1ce3
*: support config debug in env
Ehco1996 Oct 7, 2023
deda6bc
*: temp remove debug tool
Ehco1996 Oct 7, 2023
c3ec417
*: fix cors (#881)
Ehco1996 Oct 7, 2023
c6834fc
Bump python to 3.11 ( close #885)
Ehco1996 Oct 8, 2023
6714070
*: fix yaml sub
Ehco1996 Oct 8, 2023
076e3bd
Feature/ci/support multi platforms (#887)
Gkirito Oct 10, 2023
ef6c741
xray: add outbound tag
Ehco1996 Oct 17, 2023
eee8faf
admin: add node id in proxy node name
Ehco1996 Oct 20, 2023
227647a
clash: set direct rule for all proxy
Ehco1996 Oct 22, 2023
c5c12b6
clash: fix rule space
Ehco1996 Oct 22, 2023
47e37f8
deploy: bump mysql version
Ehco1996 Nov 4, 2023
a9c9a34
chore: delete client view, say bye to clash :(
Ehco1996 Nov 8, 2023
800e5ee
feat: support reset proxy port on admin
Ehco1996 Nov 8, 2023
19f5e66
openapi: support reset port (#907)
Ehco1996 Nov 17, 2023
982828a
sub: remove filename from headers
Ehco1996 Dec 4, 2023
b12dc4e
feat: Add ehco_reload_interval field to ProxyNode model
Ehco1996 Dec 10, 2023
48cfa18
feat(openapi): Add List ProxyNodes with pagination support.
Ehco1996 Dec 12, 2023
82f2297
openapi: add multi_user_port to spec
Ehco1996 Dec 13, 2023
54778a2
db: Update foreign key deletion behavior in usertrafficlog model
Ehco1996 Dec 17, 2023
70df177
*: fix change locations
Ehco1996 Dec 17, 2023
f73bc13
feat: add more action for proxy node admin
Ehco1996 Dec 17, 2023
16e891e
doc: Update CI badge link
Ehco1996 Dec 18, 2023
77b599f
feat :support auto payment query timer
Ehco1996 Dec 19, 2023
09b01ee
fix: Fix queryTimer initialization in charge_center.html
Ehco1996 Dec 19, 2023
9d3beee
*: Refactor Alipay initialization and payment query functions
Ehco1996 Dec 19, 2023
4c08e08
*: fix for alipay init
Ehco1996 Dec 19, 2023
5414014
feat: porxyt node support occupancy (#920)
Ehco1996 Dec 21, 2023
51ba9d3
fix: Fix user active nodes filter
Ehco1996 Dec 21, 2023
e82293e
Fix variable name in sync_user_traffic_task
Ehco1996 Dec 21, 2023
595a6b4
feat: Refactor admin.py and models.py in apps/proxy
Ehco1996 Dec 21, 2023
4af759b
Refactor occupancy traffic handling and add out of usage check
Ehco1996 Dec 22, 2023
e4e6430
feat: add proxy node occupancy feature
Ehco1996 Dec 22, 2023
d88481e
Refactor ProxyNode filtering logic and add status column to node_occu…
Ehco1996 Dec 22, 2023
3bc7b78
Update column header for progress in node_occupancy.html
Ehco1996 Dec 22, 2023
771ade3
feat: Add "Node Occupancy" link to navbar and hide footer if HIDE_FOO…
Ehco1996 Dec 23, 2023
13652a9
fix: fix messages
Ehco1996 Dec 23, 2023
5230ee0
feat: add duplicate for proxynode
Ehco1996 Dec 24, 2023
28c2818
fix: fix admin message
Ehco1996 Dec 24, 2023
30c2c6e
feat: add OccupancyConfigAdmin
Ehco1996 Dec 26, 2023
024d61a
chore: bump dep
Ehco1996 Dec 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 47 additions & 42 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,81 +1,86 @@
#--->服务端口 nginx
port = 80
port=80

#--->mysql
# mysql数据库设置 db.py
MYSQL_USER = root
MYSQL_PASSWORD = yourpass
#mysql数据库设置 db.py
MYSQL_USER=root
MYSQL_PASSWORD=yourpass
# mysql服务设置
# mysql host默认请保持注释*
# MYSQL_HOST = mysql
# mysql服务密码设置
MYSQL_ROOT_PASSWORD = ${MYSQL_PASSWORD} #设置MYSQL_PASSWORD即可
# MYSQL_HOST=mysql


#--->网站定制 sites.py
# 网站域名设置(请正确填写,不然订阅功能会失效:
HOST = http://127.0.0.1:8000
HOST=http://127.0.0.1:8000
# 网站密钥
SECRET_KEY = aasdasdas
SECRET_KEY=aasdasdas
# 是否开启注册
ALLOW_REGISTER = True
ALLOW_REGISTER=True
# 默认的theme
# 可选列表在 apps/constants.py 里的THEME_CHOICES里
DEFAULT_THEME = default
DEFAULT_THEME=default
# 默认加密混淆协议
DEFAULT_METHOD = aes-256-cfb
DEFAULT_METHOD=aes-256-cfb
# 签到流量设置
MIN_CHECKIN_TRAFFIC = 10485760 # 10 * 1024 * 1024 (10MB)
MAX_CHECKIN_TRAFFIC = 209715200 # 200 * 1024 * 1024 (200MB)
MIN_CHECKIN_TRAFFIC=10485760
# 10 * 1024 * 1024 (10MB)
MAX_CHECKIN_TRAFFIC=209715200
# 200 * 1024 * 1024 (200MB)
# 网站title
TITLE= 谜之屋
SUBTITLE= 秘密的小屋
SITE_TITLE=谜之屋
SITE_SUBTITLE=秘密的小屋
SITE_KEYWORDS=秘密的小屋
SITE_DESCRIPTION=秘密的小屋
SITE_LOGO_URL=""
# 用户邀请返利比例
INVITE_PERCENT= 0.2
INVITE_PERCENT=0.2
# 用户能生成的邀请码数量
INVITE_NUM = 5
# 网站邀请界面提示语
INVITEINFO = 邀请码实时更新,如果用完了就没了
INVITE_NUM=5
# 网站邀请页提示语
INVITEINFO=邀请码实时更新,如果用完了就没了
# 部分API接口TOKEN
TOKEN= youowntoken
TOKEN=youowntoken
# SHORT_URL_ALPHABET 请随机生成,且不要重复
DEFAULT_ALPHABET = qwertyuiopasdfghjklzxcvbnm
DEFAULT_ALPHABET=qwertyuiopasdfghjklzxcvbnm
# FOR SIMPLE UI
SIMPLEUI_HOME_INFO = False
SIMPLEUI_DEFAULT_ICON = False
SIMPLEUI_HOME_INFO=False
SIMPLEUI_DEFAULT_ICON=False
# 是否开启用户到期邮件通知
EXPIRE_EMAIL_NOTICE= False
EXPIRE_EMAIL_NOTICE=False


#--->邮箱设置 email.py
# 是否开启邮件功能
USE_SMTP = True
EMAIL_USE_SSL = True
EMAIL_HOST = smtp.163.com
EMAIL_PORT = 465
EMAIL_HOST_USER= user
EMAIL_HOST_PASSWORD= yourpass
DEFAULT_FROM_EMAIL = user #可以与EMAIL_HOST_USER一致
USE_SMTP=True
EMAIL_USE_SSL=True
EMAIL_HOST=smtp.163.com
EMAIL_PORT=465
EMAIL_HOST_USER=user
EMAIL_HOST_PASSWORD=yourpass
DEFAULT_FROM_EMAIL=user
#可以与EMAIL_HOST_USER一致
# FOR mailgun*
# MAILGUN_API_KEY = key
# MAILGUN_SENDER_DOMAIN = domain
# MAILGUN_API_KEY=key
# MAILGUN_SENDER_DOMAIN=domain


#--->支付宝对接 pay.py*
#USE_ALIPAY = False
#ALIPAY_APP_ID = XXXXXXXX
#ALIPAY_APP_PRIVATE_KEY_STRING = "-----BEGIN RSA PRIVATE KEY-----
#USE_ALIPAY=False
#CHECK_PAY_REQ_IP_FROM_CN=False
#ALIPAY_APP_ID=XXXXXXXX
#ALIPAY_APP_PRIVATE_KEY_STRING="-----BEGIN RSA PRIVATE KEY-----
#-----END RSA PRIVATE KEY-----"
#ALIPAY_PUBLIC_KEY_STRING="-----BEGIN PUBLIC KEY-----
#-----END PUBLIC KEY-----"

ALIPAY_TRADE_INFO="{}元充值码"

#--->其他*
# 时区
#TZ = Asia/Shanghai
#TZ=Asia/Shanghai
# msyql host
#MYSQL_HOST = mysql
#MYSQL_HOST=mysql
# redis host
#REDIS_HOST = redis
#REDIS_HOST=redis
# production不开启debug,development开启debug
#DJANGO_ENV = production
#DJANGO_ENV=production
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
---
name: Bug或者疑问
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

name: "\U0001F41B 提交BUG"
labels: "bug"
about: Something isn't working as expected
---

**问题的描述**

**项目的配置文件**


**如何复现**


**相关截图/log**


**其他信息**
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "\U0001F680 Feature Request"
labels: "feature-request"
about: I have a suggestion

---

## Feature Request

**Is your feature request related to a problem? Please describe:**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the feature you'd like:**
<!-- A clear and concise description of what you want to happen. -->

**Describe alternatives you've considered:**
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
55 changes: 55 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: black
versions:
- 21.4b0
- 21.4b1
- dependency-name: django-simpleui
versions:
- "2021.2"
- "2021.4"
- 2021.4.1
- 2021.4.3
- dependency-name: isort
versions:
- 5.7.0
- 5.8.0
- dependency-name: django-countries
versions:
- "7.0"
- "7.1"
- dependency-name: sentry-sdk
versions:
- 0.19.5
- 0.20.0
- 0.20.1
- 0.20.2
- 0.20.3
- 1.0.0
- dependency-name: markdown
versions:
- 3.3.4
- dependency-name: django-anymail
versions:
- "8.2"
- dependency-name: django
versions:
- 3.1.6
- 3.1.7
- dependency-name: python-alipay-sdk
versions:
- 2.3.0
- 3.0.0
- 3.0.1
- dependency-name: mysqlclient
versions:
- 2.0.3
- dependency-name: celery
versions:
- 5.0.5
37 changes: 37 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-code-image
on:
push:
branches:
- master
- dev
- debug-*
paths:
- "apps/**"
- "configs/**"
- "templates/**"
workflow_dispatch:
jobs:
build-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: set up qemu
uses: docker/setup-qemu-action@v2

- name: set up docker buildx
uses: docker/setup-buildx-action@v2

- name: login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: build code image
uses: docker/build-push-action@v4
with:
push: true
tags: "ehco1996/django-sspanel:latest,ehco1996/django-sspanel:code,ehco1996/django-sspanel:${{ github.sha }}"
platforms: linux/amd64,linux/arm64
file: deploy/Dockerfile.CODE
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: check-code

on:
push:
branches:
- dev
- master
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.11.5
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
#----------------------------------------------
# run lint suite
#----------------------------------------------
- name: Run Lint
run: |
source .venv/bin/activate
make setup
make check
30 changes: 0 additions & 30 deletions .github/workflows/docker-build-runtime.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Close stale issues and PRs"
on:
# schedule:
# - cron: "30 1 * * *"
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
exempt-all-pr-assignees: true
Loading
Loading