Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

生成配置文件格式优化,节点名称处理 #1

Open
wants to merge 924 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
924 commits
Select commit Hold shift + click to select a range
af13da3
fix ss plug
Toperlock Nov 26, 2023
b5af4a0
Update vless.py
Toperlock Nov 26, 2023
4d6b073
Update vmess.py
Toperlock Nov 26, 2023
9264ad9
Update vless.py
Toperlock Nov 26, 2023
7377588
Update vless.py
Toperlock Nov 26, 2023
0a686ed
Update vmess.py
Toperlock Nov 26, 2023
9868666
Update hysteria2.py
Toperlock Nov 27, 2023
51f0f06
Update hysteria.py
Toperlock Nov 27, 2023
22ce59c
fix ss v2ray_plugin
Toperlock Nov 27, 2023
3b9effd
fix ss v2ray_plugin
Toperlock Nov 27, 2023
9018a0c
Update clash2base64.py
Toperlock Nov 27, 2023
5c8c14e
Update app.py
Toperlock Nov 27, 2023
11191cc
Update clash2base64.py
Toperlock Nov 28, 2023
fbbe2a8
Update http.py
Toperlock Nov 28, 2023
8b33221
Create config_template_groups_rule_set_tun.json
Toperlock Nov 30, 2023
4f4bd20
Update README.md
Toperlock Nov 30, 2023
4ea28dd
Update config_template_groups_tun.json
Toperlock Nov 30, 2023
9376a95
Update config_template_groups_rule_set_tun.json
Toperlock Nov 30, 2023
809c319
Update config_template_groups_rule_set_tun.json
Toperlock Nov 30, 2023
55a93f1
Update README.md
Toperlock Nov 30, 2023
a14ccfb
Update config_template_groups_rule_set_tun.json
Toperlock Nov 30, 2023
38fa7a0
Update config_template_groups_rule_set_tun.json
Toperlock Nov 30, 2023
f57b853
Update main.py
Toperlock Nov 30, 2023
4dfefa0
Update README.md
Toperlock Dec 1, 2023
d63f2e0
Update README.md
Toperlock Dec 1, 2023
590e7e3
Update README.md
Toperlock Dec 1, 2023
b404b95
Update config_template_groups_rule_set_tun.json
Toperlock Dec 1, 2023
d63ad0d
Update config_template_groups_rule_set_tun.json
Toperlock Dec 1, 2023
1344d81
Update tuic.py
Toperlock Dec 2, 2023
dd0fcb4
Update README.md
Toperlock Dec 3, 2023
84266fe
Update index.html
Toperlock Dec 3, 2023
f7fd38f
support sing-box 1.8.0-alpha.9
Toperlock Dec 3, 2023
d2e7c27
Update config_template_groups_tun.json
Toperlock Dec 3, 2023
50c0388
Update config_template_groups_rule_set_tun.json
Toperlock Dec 3, 2023
4d5939e
Update config_template_groups_rule_set_tun.json
Toperlock Dec 4, 2023
489c29b
Update config_template_groups_rule_set_tun.json
Toperlock Dec 4, 2023
569d551
Update config_template_groups_rule_set_tun.json
Toperlock Dec 4, 2023
dcc6ca3
Update vmess.py
Toperlock Dec 4, 2023
0e18f4c
Update clash2base64.py
Toperlock Dec 4, 2023
bfe610d
Update ss.py
Toperlock Dec 4, 2023
b907fe1
Update config_template_groups_rule_set_tun.json
Toperlock Dec 4, 2023
87fba8d
Update config_template_groups_rule_set_tun.json
Toperlock Dec 4, 2023
b34c5e9
Update clash2base64.py
Toperlock Dec 4, 2023
e3093e2
Update clash2base64.py
Toperlock Dec 4, 2023
ed933e9
Update ss.py
Toperlock Dec 4, 2023
a0fc321
use meta rule_set
Toperlock Dec 5, 2023
e326566
Update config_template_groups_rule_set_tun.json
Toperlock Dec 5, 2023
c741975
Update README.md
Toperlock Dec 5, 2023
46165f5
Update config_template_groups_tun.json
Toperlock Dec 7, 2023
53008d1
Update vless.py
Toperlock Dec 8, 2023
7b27f53
Update clash2base64.py
Toperlock Dec 8, 2023
3158b1c
Update ss.py
Toperlock Dec 8, 2023
f80f806
Update hysteria2.py
Toperlock Dec 8, 2023
a9a25c5
Update clash2base64.py
Toperlock Dec 9, 2023
5c0f5a8
Add files via upload
Toperlock Dec 9, 2023
035eeed
Update vless.py
Toperlock Dec 9, 2023
5689b28
Update hysteria2.py
Toperlock Dec 12, 2023
ff5e17e
Update config_template_groups_wechat_rule_set_tun.json
Toperlock Dec 13, 2023
00dc776
Update config_template_groups_tun.json
Toperlock Dec 13, 2023
297773e
Update config_template_groups_rule_set_tun.json
Toperlock Dec 13, 2023
9f02668
Update hysteria.py
Toperlock Dec 14, 2023
30d0dfe
Update config_template_no_groups_tun_VN.json
Toperlock Dec 14, 2023
371ea54
Update ss.py
Toperlock Dec 14, 2023
eff6341
Update index.html
Toperlock Dec 15, 2023
84743f6
Update config_template_groups_wechat_rule_set_tun.json
Toperlock Dec 16, 2023
d4615d8
Update config_template_groups_tun.json
Toperlock Dec 16, 2023
ce0356f
Update config_template_groups_rule_set_tun.json
Toperlock Dec 16, 2023
3a9fdcb
Update config_template_groups_wechat_rule_set_tun.json
Toperlock Dec 16, 2023
10a5d83
Update config_template_groups_tun.json
Toperlock Dec 16, 2023
8c950f2
Update config_template_groups_rule_set_tun.json
Toperlock Dec 16, 2023
0e07ffb
Update config_template_no_groups_tun_VN.json
Toperlock Dec 17, 2023
c6221a9
Update config_template_no_groups_tun.json
Toperlock Dec 17, 2023
184aed5
Update config_template_groups_wechat_rule_set_tun.json
Toperlock Dec 17, 2023
95609ff
Update config_template_groups_tun.json
Toperlock Dec 17, 2023
b5fc471
Update config_template_groups_rule_set_tun.json
Toperlock Dec 17, 2023
ddc9300
Update config_template_no_groups_tun_VN.json
Toperlock Dec 17, 2023
765414a
Update config_template_no_groups_tun.json
Toperlock Dec 17, 2023
7bbf4a7
Update config_template_groups_wechat_rule_set_tun.json
Toperlock Dec 17, 2023
60be5cf
Update config_template_groups_tun.json
Toperlock Dec 17, 2023
0b1f9fe
Update config_template_groups_rule_set_tun.json
Toperlock Dec 17, 2023
f821bab
Update hysteria2.py
Toperlock Dec 18, 2023
792eee1
Update hysteria2.py
Toperlock Dec 18, 2023
6ec50ba
Update index.html
Toperlock Dec 18, 2023
d93e373
Update index.html
Toperlock Dec 18, 2023
e3790f2
Update hysteria2.py
Toperlock Dec 19, 2023
c83f605
Update trojan.py
Toperlock Dec 20, 2023
e422ec3
Update README.md
Toperlock Dec 24, 2023
5ccf618
add ipv6 & use metaxd panel
Toperlock Dec 27, 2023
d2a8aa3
Update index.html
Toperlock Dec 29, 2023
a004c73
Update main.py
Toperlock Dec 29, 2023
e1f0f3a
Update providers.json
Toperlock Dec 29, 2023
dc780f6
Update index.html
Toperlock Dec 29, 2023
1cc912c
Update app.py
Toperlock Dec 29, 2023
af8cddc
Update config_template_groups_v6_rule_set_tun.json
Toperlock Dec 30, 2023
71a6a26
Update config_template_groups_rule_set_tun.json
Toperlock Dec 30, 2023
b912d52
Update config_template_groups_tun.json
Toperlock Dec 30, 2023
1508e85
Update config_template_groups_wechat_rule_set_tun.json
Toperlock Dec 30, 2023
ca08fe7
Update config_template_no_groups_tun.json
Toperlock Dec 30, 2023
815c2ee
Update config_template_groups_rule_set_tun.json
Toperlock Dec 30, 2023
88519cc
Update config_template_groups_tun.json
Toperlock Dec 30, 2023
4efddae
Update clash2base64.py
Toperlock Dec 30, 2023
cae3f18
supports up to 3 urllinks
Toperlock Jan 1, 2024
1d2b096
支持用'|'分割3个订阅链接
Toperlock Jan 1, 2024
2d99344
Update clash2base64.py
Toperlock Jan 3, 2024
598b622
Update vless.py
Toperlock Jan 3, 2024
76f4127
不看reademe,非要我把全部的内容要求写在网页上是吧???????????????????????
Toperlock Jan 4, 2024
4f9232f
Update providers.json
Toperlock Jan 4, 2024
e619f8b
Update app.py
Toperlock Jan 4, 2024
921e383
Update index.html
Toperlock Jan 4, 2024
fea2467
add "subgroup" param
Toperlock Jan 4, 2024
85050c6
`subgroup` Name the subscription link and generate an outbound.
Toperlock Jan 4, 2024
88b6d79
Update tuic.py
Toperlock Jan 4, 2024
1d3108a
fix `subgroup`
Toperlock Jan 5, 2024
d3216b7
Update main.py
Toperlock Jan 5, 2024
992284d
fix `subgroup`
Toperlock Jan 5, 2024
9085274
fix `subgroup` logic
Toperlock Jan 5, 2024
0ed6833
Update ss.py
Toperlock Jan 5, 2024
b0299b1
Update app.py
Toperlock Jan 6, 2024
f17b8ed
Update main.py
Toperlock Jan 6, 2024
2e505d7
Update main.py
Toperlock Jan 6, 2024
900fb72
Update app.py
Toperlock Jan 6, 2024
2a8e4ea
Update app.py
Toperlock Jan 6, 2024
3559edb
Update main.py
Toperlock Jan 6, 2024
bb0e32e
Update app.py
Toperlock Jan 7, 2024
c578490
Update index.html
Toperlock Jan 7, 2024
6c4cbaf
Update app.py
Toperlock Jan 7, 2024
911ba2c
Update app.py
Toperlock Jan 7, 2024
297e145
Update app.py
Toperlock Jan 7, 2024
584652d
Update app.py
Toperlock Jan 7, 2024
606b2e1
Update index.html
Toperlock Jan 10, 2024
e56765c
我的vercel免费套餐容量要被你们占满了,有github账号的请fork本项目使用自己搭建的订阅转换网站,不然后续我会决定关闭此网站
Toperlock Jan 10, 2024
1a7e078
Update app.py
Toperlock Jan 11, 2024
973e679
Update app.py
Toperlock Jan 11, 2024
bfa75e8
Update app.py
Toperlock Jan 11, 2024
0e90890
Update app.py
Toperlock Jan 11, 2024
817617d
Update vmess.py
Toperlock Jan 11, 2024
67d90f0
Update app.py
Toperlock Jan 11, 2024
2ce6e42
Update app.py
Toperlock Jan 11, 2024
93e598b
Update app.py
Toperlock Jan 12, 2024
c6cdf6c
fix mux
Toperlock Jan 12, 2024
42bd75c
Merge pull request #44 from Toperlock/master
Toperlock Jan 12, 2024
b70c0c4
update config_template_groups_rule_set_tun
Toperlock Jan 14, 2024
0d3d543
Merge pull request #45 from Toperlock/master
Toperlock Jan 14, 2024
89ffbaa
Update config_template_groups_rule_set_tun.json
Toperlock Jan 14, 2024
4d21a48
Update vmess.py
Toperlock Jan 15, 2024
709a82a
modify template
Toperlock Jan 16, 2024
bf0dc62
fix gitlab url
Toperlock Jan 19, 2024
91174c9
modify instructions for use
Toperlock Jan 20, 2024
41dcb9c
fix vless & ss
Toperlock Jan 20, 2024
f875a32
improve hy2 parsing
Toperlock Jan 20, 2024
48a65c7
improve hy2 parsing
Toperlock Jan 20, 2024
264a854
Merge branch 'main' of github.com:Toperlock/sing-box-subscribe
Toperlock Jan 20, 2024
132cf13
Update hysteria2.py
Toperlock Jan 20, 2024
01fa8dc
fix the parameters not taking effect
Toperlock Jan 21, 2024
1edfd7a
fix bug
Toperlock Jan 21, 2024
a7c47e6
fix bug
Toperlock Jan 21, 2024
9f737ee
fix bug
Toperlock Jan 21, 2024
41dd96e
improve
Toperlock Jan 21, 2024
818b2a8
Update README.md
Toperlock Jan 21, 2024
58a7eab
fix ss method
Toperlock Jan 22, 2024
20eac00
fix v2ray-plugin
Toperlock Jan 22, 2024
84ed7e1
fix err
Toperlock Jan 22, 2024
6cee880
fix vless
Toperlock Jan 23, 2024
ad67d51
upgrade 1.8
Toperlock Jan 23, 2024
9a4cabe
adapt to other formats
Toperlock Jan 23, 2024
307b7d3
fix
Toperlock Jan 23, 2024
f296ee3
fix filtering node keyword causing error
Toperlock Jan 25, 2024
e8c42fa
fix the error in adding prefix to shadowtls node
Toperlock Jan 25, 2024
55ce0bc
fix ss padding
Toperlock Jan 25, 2024
a7d15cd
fix `subgroup` order issue
Toperlock Jan 26, 2024
f677630
compatible with other `ssr` format conversion
Toperlock Jan 26, 2024
1682e40
deletion of irregularities
Toperlock Jan 26, 2024
f549d48
dealing with special situations
Toperlock Jan 26, 2024
91cdf11
fix missed bug
Toperlock Jan 27, 2024
ca0d08d
add shadowrocket vless reality
Toperlock Jan 29, 2024
4cf9943
fix shadowtls detour
Toperlock Jan 29, 2024
251511f
block TelegramBot's request
Toperlock Jan 30, 2024
34f55b9
fix vmess alter_id
Toperlock Jan 31, 2024
a193444
1
Toperlock Jan 31, 2024
d6e0e92
fix vmess alter_id
Toperlock Jan 31, 2024
5269c22
update template, add fakeip by @xishang0128
Toperlock Feb 2, 2024
4e07b9e
fix hysteria
Toperlock Feb 3, 2024
815d4c6
optimized code
Toperlock Feb 3, 2024
87e3e43
fix subscription can't be converted
Toperlock Feb 3, 2024
7acf1e6
fix bug
Toperlock Feb 3, 2024
c73ca0f
fix error
Toperlock Feb 3, 2024
3ca2dbc
fix socks
Toperlock Feb 3, 2024
596e4e0
dealing with irregular writing
Toperlock Feb 4, 2024
a18bfde
Duplicate node filtering
Toperlock Feb 15, 2024
1ab7956
add `&eps` parameter to exclude protocol
Toperlock Feb 16, 2024
4195312
fix ssr
Toperlock Feb 16, 2024
3f93725
update tool.py
Toperlock Feb 18, 2024
72e64f9
Update README.md
Toperlock Feb 18, 2024
c5137ef
update
Toperlock Feb 18, 2024
333d74b
update tool.py
Toperlock Feb 22, 2024
f4a1a04
fix tls
Toperlock Feb 26, 2024
731c420
fix hysteria tls
Toperlock Feb 26, 2024
ad55cca
fix vmess http
Toperlock Mar 2, 2024
b67feea
update app.py
Toperlock Mar 11, 2024
2068282
update app.py
Toperlock Mar 11, 2024
c7c4a88
update app.py
Toperlock Mar 11, 2024
1fc3b13
update app.py
Toperlock Mar 11, 2024
5d9bfda
fix err
Toperlock Mar 12, 2024
0a91d3f
fix parsing json error
Toperlock Mar 12, 2024
6ce5e26
Update README.md
Toperlock Mar 18, 2024
3a527ab
fix 'transport'
Toperlock Mar 19, 2024
73f46d1
fix some parsers
Toperlock Mar 21, 2024
da4b14f
fix `protocol`
Toperlock Mar 23, 2024
7c8b026
fix tls
Toperlock Mar 23, 2024
91cd0c9
update trojan.py
Toperlock Mar 24, 2024
1922474
update
Toperlock Mar 25, 2024
8447bef
update
Toperlock Mar 25, 2024
cec3365
update
Toperlock Mar 25, 2024
5491242
`providers.json` Add `ex-node-name` parameter to filter nodes
Toperlock Mar 26, 2024
2ec1a67
Remote links can add the `enn` parameter to filter node names contain…
Toperlock Mar 27, 2024
bc4aeb5
fix trojan tls
Toperlock Mar 27, 2024
161465b
update
Toperlock Mar 31, 2024
4f9871e
update
Toperlock Mar 31, 2024
4e99838
update
Toperlock Mar 31, 2024
39b489b
update
Toperlock Mar 31, 2024
14d2628
If the outbounds content is empty, `direct` will be inserted to preve…
Toperlock Mar 31, 2024
6202f0e
del config_template_groups_v6_rule_set_tun.json
Toperlock Mar 31, 2024
40db4bd
fix config template
Toperlock Apr 2, 2024
f22eddb
compatible with `wireguard://` and `wg://`
Toperlock Apr 17, 2024
3470fc6
Functions run up to 60 seconds
Toperlock May 18, 2024
847c8df
Increase the number up to 10
Toperlock May 18, 2024
3602dfd
use Python version 3.12
Toperlock May 18, 2024
4831145
fix exception handling
Toperlock Jun 8, 2024
5e00a41
fix
Toperlock Jun 13, 2024
010e9d1
Update config
Toperlock Jun 30, 2024
872d16b
add `udp-over-tcp`
Toperlock Jul 3, 2024
1b4acbf
add `mtu`
Toperlock Jul 16, 2024
3aeda1c
端口跳跃
Toperlock Jul 19, 2024
0580334
update config.json
Toperlock Jul 30, 2024
daff55a
Update tool.py
Toperlock Aug 8, 2024
375cdbf
silence `paramiko` warnings
Toperlock Aug 8, 2024
f63be64
fix
Toperlock Aug 11, 2024
25755aa
Docker
Toperlock Aug 15, 2024
7f5f1aa
fix
Toperlock Aug 24, 2024
21caa60
fix vless
Toperlock Sep 2, 2024
c9379b2
fix vless
Toperlock Sep 2, 2024
f904d1f
merge TUN address for `1.10.0`
Toperlock Oct 16, 2024
a1f438a
config for `1.11.0`
Toperlock Dec 5, 2024
903fd44
`WireGuard` for `1.11.0`
Toperlock Dec 8, 2024
3bd372e
fix `WireGuard` for 1.11.0
Toperlock Dec 8, 2024
ad51a7d
fix `WireGuard` for 1.11
Toperlock Dec 8, 2024
cb3316e
`mirror.ghproxy.com` to `ghproxy.cn`
Toperlock Dec 17, 2024
9eb0a3c
Add port hopping (v1.11.0-beta.17+)
Toperlock Dec 30, 2024
6cab1d9
fix port hopping
Toperlock Dec 30, 2024
16c8818
fix hysteria2 ipv6 port
Toperlock Jan 14, 2025
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
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report_zh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 错误反馈/改进
description: "使用sing-box-subscrib遇到问题/需求"
body:
- type: textarea
attributes:
label: 描述
description: 请提供错误/需求的详细描述。
validations:
required: true
- type: checkboxes
attributes:
label: 完整性要求
description: |-
请勾选以下所有选项以证明您已经阅读并理解了以下要求,否则该 issue 将被关闭。
options:
- label: 我保证阅读了reademe文档,了解所有sing-box-subscrib使用参数的含义与工作流程。
required: true
- label: 我保证转换的订阅链接可以在浏览器打开,并且有内容。
required: true
40 changes: 40 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Upstream Sync

permissions:
contents: write

on:
schedule:
- cron: "0 0 * * *" # every day
workflow_dispatch:

jobs:
sync_latest_from_upstream:
name: Sync latest commits from upstream repo
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}

steps:
# Step 1: run a standard checkout action
- name: Checkout target repo
uses: actions/checkout@v3

# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
upstream_sync_repo: Toperlock/sing-box-subscribe
upstream_sync_branch: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set

# Set test_mode true to run tests instead of the true action!!
test_mode: false

- name: Sync check
if: failure()
run: |
echo "[Error] 由于上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次"
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork."
exit 1
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.vercel
*.log
*.pyc
__pycache__

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.11-slim
COPY . /sing-box-subscribe
WORKDIR /sing-box-subscribe
RUN \
pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD ["python", "api/app.py"]
10 changes: 10 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
flask = "*"

[requires]
python_version = "3.12"
Loading