From 9b80d40c18e9eedf18e80103cd85811bc32f1129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Thu, 1 Jul 2021 01:34:17 +0200 Subject: [PATCH] Peertube: Update for oidc Change admin email, set default quota to zero, install yarn for plugins, set dark theme. --- roles/peertube/files/local-production.json | 13 ++++--------- roles/peertube/tasks/main.yml | 4 ++-- roles/peertube/templates/production.yaml.j2 | 4 ++-- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/roles/peertube/files/local-production.json b/roles/peertube/files/local-production.json index da0c074..66fbce1 100644 --- a/roles/peertube/files/local-production.json +++ b/roles/peertube/files/local-production.json @@ -22,7 +22,7 @@ } }, "theme": { - "default": "default" + "default": "dark" }, "services": { "twitter": { @@ -60,24 +60,19 @@ "trending": { "videos": { "algorithms": { - "enabled": [ - "best", - "hot", - "most-viewed", - "most-liked" - ], + "enabled": ["best", "hot", "most-viewed", "most-liked"], "default": "most-viewed" } } }, "admin": { - "email": "admin@xenrox.net" + "email": "peertube@xenrox.net" }, "contact_form": { "enabled": true }, "user": { - "video_quota": -1, + "video_quota": 0, "video_quota_daily": -1 }, "transcoding": { diff --git a/roles/peertube/tasks/main.yml b/roles/peertube/tasks/main.yml index a52a8b5..c3609a5 100644 --- a/roles/peertube/tasks/main.yml +++ b/roles/peertube/tasks/main.yml @@ -1,7 +1,7 @@ --- -- name: Install nodejs +- name: Install nodejs and yarn community.general.pacman: - name: nodejs-lts-fermium + name: nodejs-lts-fermium,yarn state: present - name: install diff --git a/roles/peertube/templates/production.yaml.j2 b/roles/peertube/templates/production.yaml.j2 index 22b0585..cb175d1 100644 --- a/roles/peertube/templates/production.yaml.j2 +++ b/roles/peertube/templates/production.yaml.j2 @@ -231,7 +231,7 @@ cache: admin: # Used to generate the root user at first startup # And to receive emails from the contact form - email: "admin@xenrox.net" + email: "peertube@xenrox.net" contact_form: enabled: true @@ -249,7 +249,7 @@ signup: user: # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). # -1 == unlimited - video_quota: -1 + video_quota: 0 video_quota_daily: -1 # If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag -- 2.44.0