Add your description here
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
xkeen-subscription-watcher
Использование
xkeen-subscription-watcher <tag>=<url>
Можно передать несколько пар <tag>=<url>
Скрипт получает из переданных подписок прокси, генерирует конфиги 04_outbounds.<tag>.json.
Если конфиги изменились, выполняется xkeen -restart.
Установка
opkg install python3
curl -sSo /opt/sbin/xkeen-subscription-watcher https://raw.githubusercontent.com/tkukushkin/xkeen-subscription-watcher/refs/heads/master/src/xkeen_subscription_watcher/main.py
chmod +x /opt/sbin/xkeen-subscription-watcher
crontab -e
Добавляем что-то вроде:
0 * * * * /opt/sbin/xkeen-subscription-watcher <tag>=<url>
Убираем из 04_outbounds.json прокси, которые будут теперь генерироваться из подписок,
иначе теги будут конфликтовать, оставляем например такое:
{
"outbounds": [
{
"tag": "direct",
"protocol": "freedom"
},
{
"tag": "block",
"protocol": "blackhole",
"response": {
"type": "HTTP"
}
}
]
}
В 05_routing.json добавляем конфигурацию balancers и burstObservatory для автоматического выбора лучшего прокси,
далее в rules используем balancerTag вместо outboundTag, например:
{
"routing": {
"domainStrategy": "AsIs",
"balancers": [
{
"tag": "proxy",
"selector": ["<tag>"],
"strategy": {
"type": "leastPing"
}
}
],
"rules": [
{
"inboundTag": ["socks", "http"],
"balancerTag": "proxy"
}
]
},
"burstObservatory": {
"subjectSelector": ["<tag>"],
"pingConfig": {}
}
}
Разово запускаем команду из crontab, проверяем, что всё работает.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xkeen_subscription_watcher-0.2.1.tar.gz.
File metadata
- Download URL: xkeen_subscription_watcher-0.2.1.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c97f2275492b56a81b82e89e89dcf24c3c4ebfb4b72871c3d79a9a2c5f100d4
|
|
| MD5 |
ecc4854024a7eed88ba1a46b40bcab95
|
|
| BLAKE2b-256 |
28f4a2f8358e2bca5a83f1337426a3fd9d7c7956b5b2b3f1c5aa9e26dbcd0f3d
|
Provenance
The following attestation bundles were made for xkeen_subscription_watcher-0.2.1.tar.gz:
Publisher:
publish.yml on tkukushkin/xkeen-subscription-watcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xkeen_subscription_watcher-0.2.1.tar.gz -
Subject digest:
1c97f2275492b56a81b82e89e89dcf24c3c4ebfb4b72871c3d79a9a2c5f100d4 - Sigstore transparency entry: 1107787207
- Sigstore integration time:
-
Permalink:
tkukushkin/xkeen-subscription-watcher@09aa636ab0b79ba69dc404cd95ef0bd98b21ff84 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/tkukushkin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@09aa636ab0b79ba69dc404cd95ef0bd98b21ff84 -
Trigger Event:
release
-
Statement type:
File details
Details for the file xkeen_subscription_watcher-0.2.1-py3-none-any.whl.
File metadata
- Download URL: xkeen_subscription_watcher-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a61356abbc30c152e4a8bc7673d7dcaabe141e905b7956c2d1cd19e4e86f0c8
|
|
| MD5 |
82271adba49f2f16037d7debdd4d5c36
|
|
| BLAKE2b-256 |
354ce2d53399e8a94c1fa37c111b56c1a77de84a40b37adfe74aabd7ff01a748
|
Provenance
The following attestation bundles were made for xkeen_subscription_watcher-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on tkukushkin/xkeen-subscription-watcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xkeen_subscription_watcher-0.2.1-py3-none-any.whl -
Subject digest:
8a61356abbc30c152e4a8bc7673d7dcaabe141e905b7956c2d1cd19e4e86f0c8 - Sigstore transparency entry: 1107787210
- Sigstore integration time:
-
Permalink:
tkukushkin/xkeen-subscription-watcher@09aa636ab0b79ba69dc404cd95ef0bd98b21ff84 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/tkukushkin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@09aa636ab0b79ba69dc404cd95ef0bd98b21ff84 -
Trigger Event:
release
-
Statement type: