Replies: 2 comments 5 replies
-
Hi, this feature is not currently supported, we currently save the user quota, we should record all the transferred bytes instead and the deny login once the configured quota is exceeded and then reset the counter once the observation period ends. This is doable but it requires a discrete effort, a sponsorship could help. Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi, I think I could add to the SFTPGo user profile these new fields:
The counters (used_* fields) can be modified via REST API, so you can reset them on daily, weekly and monthly basis yourself using a cronjob or such. I could also add per-IP overrides to the above limits. So you can, for example, disable the limits for a particular IP or range To allow you to populate your dashboard with data about how an individual account has downloaded/uploaded in a day/week/month we need to save something like this for each transfer
I don't want something like this in the core SFTPGo but this could be done using a custom hook/plugin. So you will have the data directly in your database and you can execute the required aggregation queries yourself. For status = 3 the plugin could send a notification email if you need this feature. I could also develop this hook/plugin for you, it depends on the sponsorship level. What database engine do you plan to use? This should cover all your requirements. If this is ok you can contact me to email address you see in each commit to reach an agreement. If you are going to use SFTPGo in your product a monthly sponsorship would be great. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thank you so much for this project! I am considering using this in a bandwidth-sensitive environment and while it is helpful to be able to limit the transfer rate of a user, it would also be awesome to be able to limit their total transfer per day/week/month/year/etc.
If I am not being clear, I am requesting the ability to specify that a user can only download 100GB per day, after that you can cut them off, send an email to the admin/user, cut their bandwidth, etc.
If this is currently possible, please let me know. I was hoping that it would be possible to develop this via the API but that does not seem to be possible because there is no option to return the user's current bandwidth.
Material reviewed: All of the docs on Github and the API documentation.
Beta Was this translation helpful? Give feedback.
All reactions