graph TD
A[用户请求订阅] --> B[验证身份]
B -->|"成功"| C[识别代理类型]
B -->|"失败"| D[返回错误信息]
C --> E{"请求订阅源?"}
E -->|"是"| F[获取订阅数据]
E -->|"否"| G[返回预定义内容]
F --> H[清理与格式化数据]
H --> I[存储数据缓存]
I --> J[返回数据至客户端]
Frontend update: Access to sub-store.vercel.app on Vercel is restricted. For now, use the default frontend at sub.xream.eu.org, hosted on Cloudflare Pages.
sub.store Domain Safety Notice
Statement
⚠️ sub.store is only the domain used by module-script rewrite MitM rules. It is not a public domain owned by us.
Risk
If a request does not go through the rewrite, the data will be sent to the public sub.store service.
You can map sub.store to 127.0.0.1 or another local address to prevent accidental access to the public sub.store. However, ordinary users may still send requests to the public sub.store after switching or toggling configuration modules.
It could, in theory, redirect users to a fake frontend. This is only a possibility and does not imply that the owner of sub.store would do this. The current official frontend is sub.xream.eu.org.
It could receive user data from sub.store.
This creates a data leakage risk.
Plan
After listening to suggestions from the group, we will not switch to a new domain for now. Choosing a new domain is also awkward: it needs to be related, short, and unlikely to be registered by someone else, at least in the short term.
This notice is published only as an announcement. No changes will be made for now.
Example:
[Host]
sub.store = 127.0.0.1
CORS Allowlist
Sub-Store also supports a configurable browser CORS allowlist for the backend API. This does not change the module rewrite domain, but it limits which browser origins can read API responses through CORS.
Node/server deployments use SUB_STORE_CORS_ALLOWED_ORIGINS; the default is https://sub-store.vercel.app,http://substore.stash,https://substore.stash,https://sub.xream.eu.org.
Proxy App modules use the cors module argument; the default is https://sub-store.vercel.app,http://substore.stash,https://substore.stash,https://sub.xream.eu.org.
Multiple origins can be separated by commas. Origins are matched exactly by scheme, host, and port. Set the value to * only when you accept the risk of any website reading the local backend through browser CORS.
Node push notifications
For Node deployments, SUB_STORE_PUSH_SERVICE accepts a Shoutrrr URL or an existing HTTP/HTTPS URL template. Shoutrrr URLs are sent in-process with shoutrrr-ts; a separate shoutrrr executable is no longer used or required. HTTP/HTTPS URL templates still use the existing request path and [推送标题] / [推送内容] placeholders.
The supported Shoutrrr URL families are Generic Webhook (generic://, generic+https://, generic+http://), Bark, Discord, Gotify, Google Chat (hangouts:// alias), IFTTT, Join, Mattermost, ntfy, OpsGenie, Pushover, Pushbullet, Rocket.Chat, Slack, Microsoft Teams, Telegram, and Zulip. Matrix (matrix://) and SMTP (smtp://) are not supported, and there is no fallback to the old executable. Check existing configurations before upgrading; unsupported URLs produce a notification error instead of sending. See upstream compatibility details for URL options and caveats. Upstream checks use local Go-compatibility fixtures, not verified live delivery to every provider. The backend’s tested Node version is in .node-version; check the upstream package for its current Node support.
Push URLs may contain secrets: treat SUB_STORE_PUSH_SERVICE as privileged configuration. Diagnostics from the Shoutrrr path do not print the configured URL. This change does not alter the HTTP/HTTPS URL template path or its existing logging behavior.
Core functionalities:
Conversion among various formats.
Subscription formatting.
Collect multiple subscriptions in one URL.
Host and modify subscriptions/files
The following descriptions of features may not be updated in real-time. Please refer to the actual available features for accurate information.
⚠️ Do not use Shadowrocket or NekoBox to export URI and then import it as input. The URIs exported in this way may not be standard URIs. However, we have already supported some very common non-standard URIs (such as VMess, VLESS).
Proxy URI Scheme(socks5, socks5+tls, http, https(it’s ok))
评论