From a9bfa85d2cdf13670aaced740da5b493fbeddfce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Dec 2021 15:58:10 +0100 Subject: Add ability for admins to set default p2p policy --- config/default.yaml | 7 ++++++- config/production.yaml.example | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index fbe0dbbfb..421c19569 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -92,6 +92,11 @@ defaults: # No licence by default licence: null + p2p: + # Enable P2P by default + # Can be enabled/disabled by anonymous users and logged in users + enabled: true + # From the project root directory storage: tmp: 'storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... @@ -216,7 +221,7 @@ security: enabled: true tracker: - # If you disable the tracker, you disable the P2P aspect of PeerTube + # If you disable the tracker, you disable the P2P on your PeerTube instance enabled: true # Only handle requests on your videos # If you set this to false it means you have a public tracker diff --git a/config/production.yaml.example b/config/production.yaml.example index 6363a5179..13219fd5d 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -90,6 +90,11 @@ defaults: # No licence by default licence: null + p2p: + # Enable P2P by default + # Can be enabled/disabled by anonymous users and logged in users + enabled: true + # From the project root directory storage: tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... -- cgit v1.2.3