From db9d882c2567fba197754a1f6fd1d75114d33560 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 May 2022 15:56:23 +0200 Subject: Add ability to set default feed items count --- config/default.yaml | 10 ++++++++++ config/production.yaml.example | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) (limited to 'config') 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: # Set this to false if you don't want to allow config edition in the web interface by instance admins allowed: true +# XML, Atom or JSON feeds +feeds: + videos: + # Default number of videos displayed in feeds + count: 20 + + comments: + # Default number of comments displayed in feeds + count: 20 + cache: previews: 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: # Set this to false if you don't want to allow config edition in the web interface by instance admins allowed: true +# XML, Atom or JSON feeds +feeds: + videos: + # Default number of videos displayed in feeds + count: 20 + + comments: + # Default number of comments displayed in feeds + count: 20 + ############################################################################### # -# From this point, all the following keys can be overridden by the web interface +# From this point, almost all following keys can be overridden by the web interface # (local-production.json file). If you need to change some values, prefer to # use the web interface because the configuration will be automatically # reloaded without any need to restart PeerTube # -# /!\ If you already have a local-production.json file, the modification of the -# following keys will have no effect /!\ +# /!\ If you already have a local-production.json file, modification of some of +# the following keys will have no effect /!\ # ############################################################################### -- cgit v1.2.3