From 8d309bc7bf56447d9ba18716423f5c40f5140f5f Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sat, 5 Jun 2021 14:19:59 +0200 Subject: [PATCH] Entrypoint for SSB MUXRPC --- .env.sample | 4 ++++ compose.peertube.yml | 2 ++ compose.ssb.yml | 7 +++++++ traefik.yml.tmpl | 4 ++++ 4 files changed, 17 insertions(+) create mode 100644 compose.ssb.yml diff --git a/.env.sample b/.env.sample index a707a4e..20778ed 100644 --- a/.env.sample +++ b/.env.sample @@ -28,5 +28,9 @@ LOG_LEVEL=WARN # COMPOSE_FILE="compose.yml:compose.peertube.yml" # PEERTUBE_RTMP_ENABLED=1 +## Secure Scuttlebutt MUXRPC +# COMPOSE_FILE="compose.yml:compose.ssb.yml" +# SSB_MUXRPC_ENABLED=1 + ## Host-mode networking #COMPOSE_FILE="compose.yml:compose.host.yml" diff --git a/compose.peertube.yml b/compose.peertube.yml index b03016d..fe515a7 100644 --- a/compose.peertube.yml +++ b/compose.peertube.yml @@ -1,5 +1,7 @@ version: "3.8" services: app: + environment: + - PEERTUBE_RTMP_ENABLED ports: - "1935:1935" diff --git a/compose.ssb.yml b/compose.ssb.yml new file mode 100644 index 0000000..76520f3 --- /dev/null +++ b/compose.ssb.yml @@ -0,0 +1,7 @@ +version: "3.8" +services: + app: + environment: + - SSB_MUXRPC_ENABLED + ports: + - "8008:8008" diff --git a/traefik.yml.tmpl b/traefik.yml.tmpl index d6a8fab..fced2b3 100644 --- a/traefik.yml.tmpl +++ b/traefik.yml.tmpl @@ -40,6 +40,10 @@ entrypoints: peertube-rtmp: address: ":1935" {{ end }} + {{ if eq (env "SSB_MUXRPC_ENABLED") "1" }} + ssb-muxrpc: + address: ":8008" + {{ end }} ping: entryPoint: web