feat: support live chat

This commit is contained in:
decentral1se 2021-11-30 11:27:06 +01:00
parent 883839996a
commit 3e8c4733c2
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
4 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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