From 8c9e7875269a990ed3000e1d4995d808e4ff50f7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Apr 2020 15:27:41 +0200 Subject: Add ability to accept or not remote redundancies --- config/default.yaml | 8 ++++++++ config/production.yaml.example | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 1a8b19136..0b096cf8d 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -126,6 +126,14 @@ redundancy: # strategy: 'recently-added' # Cache recently added videos # min_views: 10 # Having at least x views +# Other instances that duplicate your content +remote_redundancy: + videos: + # 'nobody': Do not accept remote redundancies + # 'anybody': Accept remote redundancies from anybody + # 'followings': Accept redundancies from instance followings + accept_from: 'anybody' + csp: enabled: false report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! diff --git a/config/production.yaml.example b/config/production.yaml.example index 30cd2ffe0..b6f7d1913 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -127,6 +127,14 @@ redundancy: # strategy: 'recently-added' # Cache recently added videos # min_views: 10 # Having at least x views +# Other instances that duplicate your content +remote_redundancy: + videos: + # 'nobody': Do not accept remote redundancies + # 'anybody': Accept remote redundancies from anybody + # 'followings': Accept redundancies from instance followings + accept_from: 'anybody' + csp: enabled: false report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! -- cgit v1.2.3