mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5007] [Feature]: Add support for subscription outbound #3523
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3523
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rqzbeh on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5007
Is your feature request related to a problem?
When adding an outbound, we have to add each config separately.
Describe the solution you'd like
Add support for subscription based outbound, with support for automatic update for that subscription so the outbounds get automatically changed when subscription gets updated.
Also support for using them is balancer.
Alternatives you've considered
Sometimes outbound gets updated and we have to manually update each outbound config
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Xray config generation
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 6, 2026):
Thanks for the detailed request and for offering to implement it!
Current state of outbounds in the panel (v3.2.8)
Outbounds today are managed entirely as raw JSON inside Xray Settings → Template Config (the xrayTemplateConfig DB setting). The panel stores and passes that blob directly to xray — it does not parse individual outbound entries, so there is no concept of a subscription URL for outbounds. Traffic accounting per outbound tag is tracked separately in OutboundTraffics, and there is an outbound test endpoint (/xray/testOutbound), but no subscription-fetch or auto-update mechanism exists anywhere in the codebase.
The existing subscription infrastructure (sub/) works in the opposite direction: it generates subscription links for VPN clients — it does not import subscriptions as outbounds.
Related prior request
Issue #3730 ("Be able to use subscription in the outbounds") asked for essentially the same thing. It was closed as "completed" but there is no corresponding implementation in the repo, so the feature remains unimplemented.
Scope of the work (for context when implementing)
A PR for this feature would need to touch several layers:
If you plan to open a PR, it would help reviewers to see the DB schema and the subscription-parsing logic proposed upfront (as a draft PR or a design comment here).
@DarkFIxED commented on GitHub (Jun 6, 2026):
I appreciate if you could implement it
@rqzbeh commented on GitHub (Jun 7, 2026):
https://github.com/MHSanaei/3x-ui/pull/5037
please check this out