aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorJelle Besseling <jelle@pingiun.com>2021-10-12 13:33:44 +0200
committerGitHub <noreply@github.com>2021-10-12 13:33:44 +0200
commit8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0 (patch)
tree755ba56bc3acbd82ec195974545581c1e49aae5e /config
parentbadacdbb4a3e4a1aae4d324abc496be8e261b2ef (diff)
downloadPeerTube-8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0.tar.gz
PeerTube-8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0.tar.zst
PeerTube-8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0.zip
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
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml5
-rw-r--r--config/production.yaml.example5
2 files changed, 10 insertions, 0 deletions
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:
243 # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json 243 # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json
244 url: 'https://joinpeertube.org/api/v1/versions.json' 244 url: 'https://joinpeertube.org/api/v1/versions.json'
245 245
246webadmin:
247 configuration:
248 edit:
249 allowed: true
250
246cache: 251cache:
247 previews: 252 previews:
248 size: 500 # Max number of previews you want to cache 253 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:
241 # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json 241 # You can use a custom URL if your want, that respect the format behind https://joinpeertube.org/api/v1/versions.json
242 url: 'https://joinpeertube.org/api/v1/versions.json' 242 url: 'https://joinpeertube.org/api/v1/versions.json'
243 243
244webadmin:
245 configuration:
246 # Set to false if you want the config to be readonly
247 allow_edits: true
248
244############################################################################### 249###############################################################################
245# 250#
246# From this point, all the following keys can be overridden by the web interface 251# From this point, all the following keys can be overridden by the web interface