diff options
author | Wicklow <123956049+wickloww@users.noreply.github.com> | 2023-04-07 08:09:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 10:09:54 +0200 |
commit | b302c80dc0d9ba8eabef9ef6576efe36afc57584 (patch) | |
tree | 14d406b41291805deb94a36a5e79f8d6989355f8 /config | |
parent | 9258e9a4a37911fc64b5faada2a7e604bd1ede1f (diff) | |
download | PeerTube-b302c80dc0d9ba8eabef9ef6576efe36afc57584.tar.gz PeerTube-b302c80dc0d9ba8eabef9ef6576efe36afc57584.tar.zst PeerTube-b302c80dc0d9ba8eabef9ef6576efe36afc57584.zip |
feature/ability to disable video history by default (#5728)
* draft: ability to disable video history by default
* Update configuration and add tests
* Updated code based on review comments
* Add tests on registration and video quota
* Remove required video quotas in query
* Fix tests
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 4 | ||||
-rw-r--r-- | config/production.yaml.example | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/config/default.yaml b/config/default.yaml index db014cc87..dfa43a0aa 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -408,6 +408,10 @@ signup: | |||
408 | blacklist: [] | 408 | blacklist: [] |
409 | 409 | ||
410 | user: | 410 | user: |
411 | history: | ||
412 | videos: | ||
413 | # Enable or disable video history by default for new users. | ||
414 | enabled: true | ||
411 | # Default value of maximum video bytes the user can upload (does not take into account transcoded files) | 415 | # Default value of maximum video bytes the user can upload (does not take into account transcoded files) |
412 | # Byte format is supported ("1GB" etc) | 416 | # Byte format is supported ("1GB" etc) |
413 | # -1 == unlimited | 417 | # -1 == unlimited |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 9cb8add1f..744a14e91 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -417,7 +417,11 @@ signup: | |||
417 | whitelist: [] | 417 | whitelist: [] |
418 | blacklist: [] | 418 | blacklist: [] |
419 | 419 | ||
420 | user: | 420 | user: |
421 | history: | ||
422 | videos: | ||
423 | # Enable or disable video history by default for new users. | ||
424 | enabled: true | ||
421 | # Default value of maximum video bytes the user can upload (does not take into account transcoded files) | 425 | # Default value of maximum video bytes the user can upload (does not take into account transcoded files) |
422 | # Byte format is supported ("1GB" etc) | 426 | # Byte format is supported ("1GB" etc) |
423 | # -1 == unlimited | 427 | # -1 == unlimited |