diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-24 15:56:23 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-24 15:56:23 +0200 |
commit | db9d882c2567fba197754a1f6fd1d75114d33560 (patch) | |
tree | 1a3be4f42c543cec2d60117565d1c92e3297c997 /config | |
parent | 87a0cac618c8ed4a09408273d0f5a468530e8062 (diff) | |
download | PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.tar.gz PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.tar.zst PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.zip |
Add ability to set default feed items count
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 10 | ||||
-rw-r--r-- | config/production.yaml.example | 16 |
2 files changed, 23 insertions, 3 deletions
diff --git a/config/default.yaml b/config/default.yaml index c3e42350b..c0d17decf 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -297,6 +297,16 @@ webadmin: | |||
297 | # Set this to false if you don't want to allow config edition in the web interface by instance admins | 297 | # Set this to false if you don't want to allow config edition in the web interface by instance admins |
298 | allowed: true | 298 | allowed: true |
299 | 299 | ||
300 | # XML, Atom or JSON feeds | ||
301 | feeds: | ||
302 | videos: | ||
303 | # Default number of videos displayed in feeds | ||
304 | count: 20 | ||
305 | |||
306 | comments: | ||
307 | # Default number of comments displayed in feeds | ||
308 | count: 20 | ||
309 | |||
300 | cache: | 310 | cache: |
301 | previews: | 311 | previews: |
302 | size: 500 # Max number of previews you want to cache | 312 | size: 500 # Max number of previews you want to cache |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 4351a4b87..8fd8d805f 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -293,15 +293,25 @@ webadmin: | |||
293 | # Set this to false if you don't want to allow config edition in the web interface by instance admins | 293 | # Set this to false if you don't want to allow config edition in the web interface by instance admins |
294 | allowed: true | 294 | allowed: true |
295 | 295 | ||
296 | # XML, Atom or JSON feeds | ||
297 | feeds: | ||
298 | videos: | ||
299 | # Default number of videos displayed in feeds | ||
300 | count: 20 | ||
301 | |||
302 | comments: | ||
303 | # Default number of comments displayed in feeds | ||
304 | count: 20 | ||
305 | |||
296 | ############################################################################### | 306 | ############################################################################### |
297 | # | 307 | # |
298 | # From this point, all the following keys can be overridden by the web interface | 308 | # From this point, almost all following keys can be overridden by the web interface |
299 | # (local-production.json file). If you need to change some values, prefer to | 309 | # (local-production.json file). If you need to change some values, prefer to |
300 | # use the web interface because the configuration will be automatically | 310 | # use the web interface because the configuration will be automatically |
301 | # reloaded without any need to restart PeerTube | 311 | # reloaded without any need to restart PeerTube |
302 | # | 312 | # |
303 | # /!\ If you already have a local-production.json file, the modification of the | 313 | # /!\ If you already have a local-production.json file, modification of some of |
304 | # following keys will have no effect /!\ | 314 | # the following keys will have no effect /!\ |
305 | # | 315 | # |
306 | ############################################################################### | 316 | ############################################################################### |
307 | 317 | ||