From 8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0 Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Tue, 12 Oct 2021 13:33:44 +0200 Subject: Allow configuration to be static/readonly (#4315) * Allow configuration to be static/readonly * Make all components disableable * Improve disabled component styling * Rename edits allowed field in configuration * Fix CI --- config/default.yaml | 5 +++++ config/production.yaml.example | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 3865ab5cf..eb96b6bbb 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -243,6 +243,11 @@ peertube: # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json url: 'https://joinpeertube.org/api/v1/versions.json' +webadmin: + configuration: + edit: + allowed: true + 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 94238fad0..082c75e53 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -241,6 +241,11 @@ peertube: # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json url: 'https://joinpeertube.org/api/v1/versions.json' +webadmin: + configuration: + # Set to false if you want the config to be readonly + allow_edits: true + ############################################################################### # # From this point, all the following keys can be overridden by the web interface -- cgit v1.2.3