mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5450] [Feature]: Support custom traffic reset dates for individual inbound servers #3813
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#3813
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 @yifeng623 on GitHub (Jun 20, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5450
Is your feature request related to a problem?
Currently, the system only supports resetting inbound traffic on a fixed monthly basis. However, in real-world deployments, different servers/machines often have different billing cycles and reset dates.
Suggested Feature:
It would be incredibly useful to have an option to specify a custom traffic reset date (or day of the month) for each individual inbound machine, rather than a global or fixed monthly reset.
Use Case:
For example, Server A resets on the 5th of every month, while Server B resets on the 20th. Allowing per-server reset dates would make traffic management much more accurate.
Thank you for considering this request!
Describe the solution you'd like
It would be incredibly useful to have an option to specify a custom traffic reset date (or day of the month) for each individual inbound machine, rather than a global or fixed monthly reset.
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 20, 2026):
This is a duplicate of #5119, which tracks the same request and is already open and accepted into the backlog.
The current implementation (confirmed in
internal/database/model/model.goandinternal/web/web.go) supports only five fixed reset periods —never,hourly,daily,weekly,monthly— enforced by a model validation constraint and four statically-registered cron entries. There is no per-inbound day-of-month or arbitrary-date reset. The implementation notes in #5119 explain what changes would be needed (model/validation, scheduler, and frontend).Workaround until this is implemented
The panel exposes REST endpoints (documented at
/docsvia the in-panel Swagger UI) that can be called from a host-level cron job:POST /panel/inbound/resetAllTrafficsPOST /panel/inbound/resetClientTraffics/{id}Example: reset on the 5th of each month at midnight:
Closing in favor of #5119. Please subscribe to that issue for updates.
This reply was generated automatically; a maintainer may follow up.