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