|
@@ -3,10 +3,10 @@ title: Сервер подписок
|
|
|
description: >-
|
|
description: >-
|
|
|
Отдельный HTTP/HTTPS-сервер, который отдаёт клиентам ссылки на подписки
|
|
Отдельный HTTP/HTTPS-сервер, который отдаёт клиентам ссылки на подписки
|
|
|
прокси (стандартные, JSON и Clash). Сервер слушает на собственном порту (по
|
|
прокси (стандартные, JSON и Clash). Сервер слушает на собственном порту (по
|
|
|
- умолчанию 10882) и настраивается в разделе Settings → Subscription. Пути
|
|
|
|
|
- настраиваемы; значения по умолчанию показаны ниже. Все конечные точки подписок
|
|
|
|
|
- устанавливают заголовки ответа, по которым клиентские приложения считывают
|
|
|
|
|
- информацию о трафике и сроке действия.
|
|
|
|
|
|
|
+ умолчанию 2096) и настраивается в разделе Settings → Subscription. Новые
|
|
|
|
|
+ панели генерируют случайные префиксы путей для каждого формата; все пути можно
|
|
|
|
|
+ изменить. Все конечные точки подписок устанавливают заголовки ответа, по
|
|
|
|
|
+ которым клиентские приложения считывают информацию о трафике и сроке действия.
|
|
|
full: true
|
|
full: true
|
|
|
_openapi:
|
|
_openapi:
|
|
|
preload:
|
|
preload:
|
|
@@ -16,45 +16,46 @@ _openapi:
|
|
|
title: >-
|
|
title: >-
|
|
|
Return base64-encoded subscription links for all enabled clients
|
|
Return base64-encoded subscription links for all enabled clients
|
|
|
matching the subscription ID. When the request has an Accept: text/html
|
|
matching the subscription ID. When the request has an Accept: text/html
|
|
|
- header or ?html=1, renders a styled info page instead. Default path:
|
|
|
|
|
- /sub/:subid.
|
|
|
|
|
|
|
+ header or ?html=1, renders a styled info page instead. The path prefix is
|
|
|
|
|
+ configured by subPath.
|
|
|
url: >-
|
|
url: >-
|
|
|
- #return-base64-encoded-subscription-links-for-all-enabled-clients-matching-the-subscription-id-when-the-request-has-an-accept-texthtml-header-or-html1-renders-a-styled-info-page-instead-default-path-subsubid
|
|
|
|
|
|
|
+ #return-base64-encoded-subscription-links-for-all-enabled-clients-matching-the-subscription-id-when-the-request-has-an-accept-texthtml-header-or-html1-renders-a-styled-info-page-instead-with-formatinfo-returns-the-page-view-model-as-json-traffic-expiry-online-status-no-links-for-live-polling-the-path-prefix-is-configured-by-subpath
|
|
|
- depth: 2
|
|
- depth: 2
|
|
|
title: >-
|
|
title: >-
|
|
|
Return subscription as a JSON array of proxy configs (one per enabled
|
|
Return subscription as a JSON array of proxy configs (one per enabled
|
|
|
- client). Only when JSON subscription is enabled in settings. Default
|
|
|
|
|
- path: /json/:subid.
|
|
|
|
|
|
|
+ client). Only when JSON subscription is enabled in settings. The path
|
|
|
|
|
+ prefix is configured by subJsonPath.
|
|
|
url: >-
|
|
url: >-
|
|
|
- #return-subscription-as-a-json-array-of-proxy-configs-one-per-enabled-client-only-when-json-subscription-is-enabled-in-settings-default-path-jsonsubid
|
|
|
|
|
|
|
+ #return-subscription-as-a-json-array-of-proxy-configs-one-per-enabled-client-only-when-json-subscription-is-enabled-in-settings-the-path-prefix-is-configured-by-subjsonpath
|
|
|
- depth: 2
|
|
- depth: 2
|
|
|
title: >-
|
|
title: >-
|
|
|
Return subscription as a Clash/Mihomo-compatible YAML config, including
|
|
Return subscription as a Clash/Mihomo-compatible YAML config, including
|
|
|
configured global Clash routing rules. Only when Clash subscription is
|
|
configured global Clash routing rules. Only when Clash subscription is
|
|
|
- enabled in settings. Default path: /clash/:subid.
|
|
|
|
|
|
|
+ enabled in settings. The path prefix is configured by subClashPath.
|
|
|
url: >-
|
|
url: >-
|
|
|
- #return-subscription-as-a-clashmihomo-compatible-yaml-config-including-configured-global-clash-routing-rules-only-when-clash-subscription-is-enabled-in-settings-default-path-clashsubid
|
|
|
|
|
|
|
+ #return-subscription-as-a-clashmihomo-compatible-yaml-config-including-configured-global-clash-routing-rules-only-when-clash-subscription-is-enabled-in-settings-the-path-prefix-is-configured-by-subclashpath
|
|
|
structuredData:
|
|
structuredData:
|
|
|
headings:
|
|
headings:
|
|
|
- content: >-
|
|
- content: >-
|
|
|
Return base64-encoded subscription links for all enabled clients
|
|
Return base64-encoded subscription links for all enabled clients
|
|
|
matching the subscription ID. When the request has an Accept:
|
|
matching the subscription ID. When the request has an Accept:
|
|
|
- text/html header or ?html=1, renders a styled info page instead.
|
|
|
|
|
- Default path: /sub/:subid.
|
|
|
|
|
|
|
+ text/html header or ?html=1, renders a styled info page instead. The
|
|
|
|
|
+ path prefix is configured by subPath.
|
|
|
id: >-
|
|
id: >-
|
|
|
- return-base64-encoded-subscription-links-for-all-enabled-clients-matching-the-subscription-id-when-the-request-has-an-accept-texthtml-header-or-html1-renders-a-styled-info-page-instead-default-path-subsubid
|
|
|
|
|
|
|
+ return-base64-encoded-subscription-links-for-all-enabled-clients-matching-the-subscription-id-when-the-request-has-an-accept-texthtml-header-or-html1-renders-a-styled-info-page-instead-with-formatinfo-returns-the-page-view-model-as-json-traffic-expiry-online-status-no-links-for-live-polling-the-path-prefix-is-configured-by-subpath
|
|
|
- content: >-
|
|
- content: >-
|
|
|
Return subscription as a JSON array of proxy configs (one per enabled
|
|
Return subscription as a JSON array of proxy configs (one per enabled
|
|
|
- client). Only when JSON subscription is enabled in settings. Default
|
|
|
|
|
- path: /json/:subid.
|
|
|
|
|
|
|
+ client). Only when JSON subscription is enabled in settings. The path
|
|
|
|
|
+ prefix is configured by subJsonPath.
|
|
|
id: >-
|
|
id: >-
|
|
|
- return-subscription-as-a-json-array-of-proxy-configs-one-per-enabled-client-only-when-json-subscription-is-enabled-in-settings-default-path-jsonsubid
|
|
|
|
|
|
|
+ return-subscription-as-a-json-array-of-proxy-configs-one-per-enabled-client-only-when-json-subscription-is-enabled-in-settings-the-path-prefix-is-configured-by-subjsonpath
|
|
|
- content: >-
|
|
- content: >-
|
|
|
Return subscription as a Clash/Mihomo-compatible YAML config,
|
|
Return subscription as a Clash/Mihomo-compatible YAML config,
|
|
|
including configured global Clash routing rules. Only when Clash
|
|
including configured global Clash routing rules. Only when Clash
|
|
|
- subscription is enabled in settings. Default path: /clash/:subid.
|
|
|
|
|
|
|
+ subscription is enabled in settings. The path prefix is configured by
|
|
|
|
|
+ subClashPath.
|
|
|
id: >-
|
|
id: >-
|
|
|
- return-subscription-as-a-clashmihomo-compatible-yaml-config-including-configured-global-clash-routing-rules-only-when-clash-subscription-is-enabled-in-settings-default-path-clashsubid
|
|
|
|
|
|
|
+ return-subscription-as-a-clashmihomo-compatible-yaml-config-including-configured-global-clash-routing-rules-only-when-clash-subscription-is-enabled-in-settings-the-path-prefix-is-configured-by-subclashpath
|
|
|
contents: []
|
|
contents: []
|
|
|
---
|
|
---
|
|
|
|
|
|
|
@@ -70,4 +71,4 @@ export default function Layout(props) {
|
|
|
<Comp document="./public/openapi.json" webhooks={[]} operations={[{"path":"/{subPath}{subid}","method":"get"},{"path":"/{jsonPath}{subid}","method":"get"},{"path":"/{clashPath}{subid}","method":"get"}]} showTitle />
|
|
<Comp document="./public/openapi.json" webhooks={[]} operations={[{"path":"/{subPath}{subid}","method":"get"},{"path":"/{jsonPath}{subid}","method":"get"},{"path":"/{clashPath}{subid}","method":"get"}]} showTitle />
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
-}
|
|
|
|
|
|
|
+}
|