From a4ac1c999e101396a56e16f69fc8003e41cbcaee Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sun, 27 May 2018 15:03:27 +0200 Subject: [PATCH] Allow to setup transcoding in the docker image --- .../config/custom-environment-variables.yaml | 20 +++++++++++++++++++ .../docker/production/config/production.yaml | 6 ++++++ 2 files changed, 26 insertions(+) diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml index 831c6d1fb..2278b4e2e 100644 --- a/support/docker/production/config/custom-environment-variables.yaml +++ b/support/docker/production/config/custom-environment-variables.yaml @@ -53,6 +53,26 @@ transcoding: enabled: __name: "PEERTUBE_TRANSCODING_ENABLED" __format: "json" + threads: + __name: "PEERTUBE_TRANSCODING_THREADS" + __format: "json" + resolutions: + 240p: + __name: "PEERTUBE_TRANSCODING_240P" + __format: "json" + 360p: + __name: "PEERTUBE_TRANSCODING_360P" + __format: "json" + 480p: + __name: "PEERTUBE_TRANSCODING_480P" + __format: "json" + 720p: + __name: "PEERTUBE_TRANSCODING_720P" + __format: "json" + 1080: + __name: "PEERTUBE_TRANSCODING_1080P" + __format: "json" + instance: name: "PEERTUBE_INSTANCE_NAME" diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yaml index 64fc9e82c..3ba53d24b 100644 --- a/support/docker/production/config/production.yaml +++ b/support/docker/production/config/production.yaml @@ -45,3 +45,9 @@ log: admin: email: null + +transcoding: + resolutions: + 360: true + 720: true +