aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-11 15:38:53 +0200
committerChocobozzz <me@florianbigard.com>2019-04-11 15:38:53 +0200
commit8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98 (patch)
treee04f1da52f9377cf6ce820425c0de6e57ab57fc6 /config
parent76062d9f96e06a23a2efc8a727ea9c5394d21466 (diff)
downloadPeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.gz
PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.zst
PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.zip
Add ability to limit videos history size
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml7
-rw-r--r--config/production.yaml.example6
2 files changed, 13 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 617159c2c..d45d84b90 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -111,6 +111,13 @@ tracker:
111 # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) 111 # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers)
112 reject_too_many_announces: false 112 reject_too_many_announces: false
113 113
114history:
115 videos:
116 # If you want to limit users videos history
117 # -1 means there is no limitations
118 # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database)
119 max_age: -1
120
114cache: 121cache:
115 previews: 122 previews:
116 size: 500 # Max number of previews you want to cache 123 size: 500 # Max number of previews you want to cache
diff --git a/config/production.yaml.example b/config/production.yaml.example
index dd5c9769b..b813a65e9 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -112,6 +112,12 @@ tracker:
112 # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) 112 # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers)
113 reject_too_many_announces: false 113 reject_too_many_announces: false
114 114
115history:
116 videos:
117 # If you want to limit users videos history
118 # -1 means there is no limitations
119 # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database)
120 max_age: -1
115 121
116############################################################################### 122###############################################################################
117# 123#