diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 17:33:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-12 08:31:06 +0200 |
commit | cda03765fe366f028897e9b02dd4a0a19af3c935 (patch) | |
tree | 4d30303d76f8fd171195a51b1f737a0067987d6c /config | |
parent | 7b293f28686319242958dff7315cdd8ad74fc15e (diff) | |
download | PeerTube-cda03765fe366f028897e9b02dd4a0a19af3c935.tar.gz PeerTube-cda03765fe366f028897e9b02dd4a0a19af3c935.tar.zst PeerTube-cda03765fe366f028897e9b02dd4a0a19af3c935.zip |
Add ability to delete old remote views
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 10 | ||||
-rw-r--r-- | config/production.yaml.example | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index d45d84b90..70b10299d 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -118,6 +118,16 @@ history: | |||
118 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) | 118 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) |
119 | max_age: -1 | 119 | max_age: -1 |
120 | 120 | ||
121 | views: | ||
122 | videos: | ||
123 | # PeerTube creates a database entry every hour for each video to track views over a period of time | ||
124 | # This is used in particular by the Trending page | ||
125 | # PeerTube could remove old remote video views if you want to reduce your database size (video view counter will not be altered) | ||
126 | # -1 means no cleanup | ||
127 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) | ||
128 | remote: | ||
129 | max_age: -1 | ||
130 | |||
121 | cache: | 131 | cache: |
122 | previews: | 132 | previews: |
123 | size: 500 # Max number of previews you want to cache | 133 | size: 500 # Max number of previews you want to cache |
diff --git a/config/production.yaml.example b/config/production.yaml.example index b813a65e9..06baaf7d4 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -119,6 +119,17 @@ history: | |||
119 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) | 119 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) |
120 | max_age: -1 | 120 | max_age: -1 |
121 | 121 | ||
122 | views: | ||
123 | videos: | ||
124 | # PeerTube creates a database entry every hour for each video to track views over a period of time | ||
125 | # This is used in particular by the Trending page | ||
126 | # PeerTube could remove old remote video views if you want to reduce your database size (video view counter will not be altered) | ||
127 | # -1 means no cleanup | ||
128 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) | ||
129 | remote: | ||
130 | max_age: -1 | ||
131 | |||
132 | |||
122 | ############################################################################### | 133 | ############################################################################### |
123 | # | 134 | # |
124 | # From this point, all the following keys can be overridden by the web interface | 135 | # From this point, all the following keys can be overridden by the web interface |