Skip to main content

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.generated.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"
      }
    }
  ]
}

Разово запускаем команду из crontab, проверяем, что всё работает.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xkeen_subscription_watcher-0.1.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xkeen_subscription_watcher-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file xkeen_subscription_watcher-0.1.0.tar.gz.

File metadata

File hashes

Hashes for xkeen_subscription_watcher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ba253074fb11389415c91704bca821c2c32d1877a8bf68f5f236c4224a4c338
MD5 bba115dd6e3d683679e3027c4d6e4373
BLAKE2b-256 c2348b2d7778ce78d3f22b62f4de2261ff1af22efd8409449e643015270be0bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for xkeen_subscription_watcher-0.1.0.tar.gz:

Publisher: publish.yml on tkukushkin/xkeen-subscription-watcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xkeen_subscription_watcher-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xkeen_subscription_watcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8eeb421abf116f5290230f097bde9788d87a9ea27ad58a23082ae591a41eaea
MD5 e2c448caff3fe37b34836f000debace8
BLAKE2b-256 53fc1abce760682293a5e53c72f220f4ec0ad6b830eb13069280e8f3ae481c20

See more details on using hashes here.

Provenance

The following attestation bundles were made for xkeen_subscription_watcher-0.1.0-py3-none-any.whl:

Publisher: publish.yml on tkukushkin/xkeen-subscription-watcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page