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
This commit is contained in:
Jelle Besseling
2021-10-12 13:33:44 +02:00
committed by GitHub
parent badacdbb4a
commit 8d8a037e3f
23 changed files with 304 additions and 195 deletions
+5
View File
@@ -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
+5
View File
@@ -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