generated from coop-cloud/example
feat: support live chat
This commit is contained in:
parent
883839996a
commit
3e8c4733c2
|
@ -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
|
||||
|
|
2
abra.sh
2
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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue