mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5119] [Feature]: Inbound Traffic Reset date customizable #3598
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#3598
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 @MaurUppi on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5119
Is your feature request related to a problem?
My VPS has not reset the traffic limitation on a calendar month, but on the date that I ordered. However, 3x-ui v3.2.8 can ONLY set a regular timing Traffic Reset.
Describe the solution you'd like
I'd like to have a customizable Traffic Reset schedule. Here I'm using cron job schedule
0 0 9 * *as an example.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 9, 2026):
Thanks for the clear request, @MaurUppi!
Current behavior (confirmed in source)
The inbound trafficReset field (database/model/model.go line 55) is validated as:
oneof=never hourly daily weekly monthly
The scheduler registers four fixed-interval jobs at startup (web/web.go lines 304-312):
There is no option to pick a custom day of the month (e.g. the 9th to match a VPS billing cycle).
What a proper implementation would require
Workaround until this is implemented
The panel exposes REST endpoints (documented at /docs via Swagger) that you can call from a host cron job:
Add an entry to crontab on your server to fire on the 9th of each month at midnight:
This is a valid enhancement - leaving open for maintainer review.