From 3e8c4733c26c836c135b5b83c72fb59e144c3198 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 30 Nov 2021 11:27:06 +0100 Subject: [PATCH] feat: support live chat --- .env.sample | 3 +++ abra.sh | 2 +- compose.yml | 1 + entrypoint.sh | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index 488122b..68cddb4 100644 --- a/.env.sample +++ b/.env.sample @@ -42,3 +42,6 @@ SECRET_DB_PASSWORD_VERSION=v1 ## Live stream settings #COMPOSE_FILE="compose.yml:compose.rtmp.yml" + +## Live chat settings +#PEERTUBE_LIVE_CHAT_ENABLED=1 diff --git a/abra.sh b/abra.sh index a3afa1f..c2ebfa9 100644 --- a/abra.sh +++ b/abra.sh @@ -1,7 +1,7 @@ # shellcheck disable=SC2034,SC2145 export NGINX_CONFIG_VERSION=v3 -export APP_ENTRYPOINT_VERSION=v2 +export APP_ENTRYPOINT_VERSION=v3 sub_npm() { abra__service_="app" diff --git a/compose.yml b/compose.yml index e2d3820..75ecb4e 100644 --- a/compose.yml +++ b/compose.yml @@ -43,6 +43,7 @@ services: - PEERTUBE_DB_PASSWORD_FILE=/run/secrets/db_password - PEERTUBE_DB_PORT=5432 - PEERTUBE_DB_USERNAME=peertube + - PEERTUBE_LIVE_CHAT_ENABLED - PEERTUBE_REDIS_HOSTNAME=cache - PEERTUBE_SIGNUP_ENABLED - PEERTUBE_TRANSCODING_ENABLED diff --git a/entrypoint.sh b/entrypoint.sh index 7175127..46f3615 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,6 +30,10 @@ if [ -z "$PEERTUBE_SMTP_ENABLED" ]; then file_env "PEERTUBE_SMTP_PASSWORD" fi +if [ -z "$PEERTUBE_LIVE_CHAT_ENABLED" ]; then + apt -y update && apt install -y prosody && apt -y clean +fi + # Copy the client files over to a named volume # so that they may be served by nginx directly cp -ar /app/client/dist /srv/client