Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Add user online stats #1506

Open
gl1tchdev opened this issue Dec 12, 2024 · 1 comment
Open

API: Add user online stats #1506

gl1tchdev opened this issue Dec 12, 2024 · 1 comment
Labels
Backend In Progress P3 v1 feature or bug that need to be implement or be fixed in version 1

Comments

@gl1tchdev
Copy link

hey
see XTLS/Xray-core#3637.
user stats api has been updated in xray core 24.11.5 - ip counter config added.
can u add ip limit per email and display counter it in admin panel? or at least add api to work with this stat through rest api

@gl1tchdev
Copy link
Author

if someone needs temporary solution:

  1. marzban core-update
  2. update config:
  "policy": {
    "levels": {
      "0": {
        "statsUserOnline": true
      }
    },
    "system": {}
  }

docker exec marzban-marzban-1 /var/lib/marzban/xray-core/xray api statsonline -s 127.0.0.1:34728 --email={id}.{email}
where id - marzban db user id, and email - true username.
but I started to think that access.log more useful for limit connections.

I hope this feature will appear at marzban api and good luck :)

@M03ED M03ED added Backend P3 In Progress v1 feature or bug that need to be implement or be fixed in version 1 labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend In Progress P3 v1 feature or bug that need to be implement or be fixed in version 1
Projects
None yet
Development

No branches or pull requests

2 participants