Sitelet https://web.archive.org/web/20190518010758/https://github.com/Chocobozzz/PeerTube/issues/666
Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
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

Custom user quotas #666

Open
XenonFiber opened this issue Jun 16, 2018 · 4 comments

Comments

Projects
None yet
5 participants
@XenonFiber
Copy link

commented Jun 16, 2018

Unless I'm missing something, there's no way to enter a custom universal quota after first run/at all for individual accounts. There's only the preset options in the admin panel.

@lil5

This comment has been minimized.

Copy link

commented Oct 16, 2018 •

1.
You could try digging in server/controllers/api/users/index.ts
This includes:

  • updateUser with req including a videoQuota
  • listUsers to loop through

2.
You could cycle through all accounts with listVideoAccountChannels in server/controllers/api/accounts.ts,
then change the videoQuota in server/controllers/api/config.ts

First you will need to find the connections from server/tools/cli.ts to the server api.
Edit : server/tools/cli.ts:1 uses application-config thus only edits the config.yaml file (so the defaults for new users not existing)

If someone knows more about the api don't hesitate to comment 👍

https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/api/quickstart.md

@McFlat

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018 •

@lil5 I don't mean to be a grammar nazi, just trying to help you out bro. I think you mean the word through or thru, threw is for when a person has already thrown something, like a ball or a set of keys or the app threw an exception, etc

@lil5

This comment has been minimized.

Copy link

commented Oct 17, 2018

@McFlat changed, still a grammar nazi but thats cool xD

@zacharystenger

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2019

I'm planning to work on this issue. I was picturing the dropdowns would have a 'custom' option which, when selected, would make two items appear to the right of the dropdown: a number input field and a dropdown for selecting MB or GB. Open to suggestions as this could definitely be handled differently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.