Add owncast and fix rtmp routes

This commit is contained in:
Stephan Porada 2021-05-06 12:14:28 +02:00
parent 5116449f7e
commit d5915f7f61
5 changed files with 36 additions and 5 deletions

View File

@ -27,12 +27,12 @@ services:
- "traefik.http.routers.osp.tls.certresolver=myresolver" - "traefik.http.routers.osp.tls.certresolver=myresolver"
- "traefik.http.services.osp.loadbalancer.server.port=80" - "traefik.http.services.osp.loadbalancer.server.port=80"
# RTMP specific # RTMP specific
- "traefik.tcp.routers.rtmpcast.entrypoints=osp-rtmp" - "traefik.tcp.routers.rtmpcast.entrypoints=rtmp"
- "traefik.tcp.routers.rtmpcast.rule=HostSNI(`osp.${DOMAIN}`)" - "traefik.tcp.routers.rtmpcast.rule=HostSNI(`osp.${DOMAIN}`)"
- "traefik.tcp.routers.rtmpcast.service=rtmpcast" - "traefik.tcp.routers.rtmpcast.service=rtmpcast"
- "traefik.tcp.routers.rtmpcast.tls=true" #- "traefik.tcp.routers.rtmpcast.tls=true"
- "traefik.tcp.routers.rtmpcast.tls.certresolver=myresolver" #- "traefik.tcp.routers.rtmpcast.tls.certresolver=myresolver"
- "traefik.tcp.routers.rtmpcast.tls.passthrough=true" #- "traefik.tcp.routers.rtmpcast.tls.passthrough=true"
- "traefik.tcp.services.rtmpcast.loadbalancer.server.port=1935" - "traefik.tcp.services.rtmpcast.loadbalancer.server.port=1935"
networks: networks:
- default - default

0
owncast/config.yaml Normal file
View File

View File

@ -0,0 +1,31 @@
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
owncast:
image: gabekangas/owncast:latest
restart: unless-stopped
container_name: owncast-app
env_file: live.env
networks:
- default
ports:
- "8080:8080"
volumes:
- ${OWNCAST_ROOT}/db:/db # Remove if you don't want chat persistant
command: /app/owncast -configFile=config.yaml -database=/db/chat.db
labels:
- "traefik.enable=true"
- "traefik.http.routers.owncast.rule=Host(`watch.${DOMAIN}`)"
- "traefik.http.routers.owncast.entrypoints=websecure"
- "traefik.http.routers.owncast.tls.certresolver=myresolver"
- "traefik.tcp.routers.rtmpcast.entrypoints=rtmp"
- "traefik.tcp.routers.rtmpcast.rule=HostSNI(`watch.${DOMAIN}`)"
- "traefik.tcp.routers.rtmpcast.service=rtmpcast"
- "traefik.tcp.routers.rtmpcast.tls=true"
- "traefik.tcp.routers.rtmpcast.tls.certresolver=myresolver"
- "traefik.tcp.services.rtmpcast.loadbalancer.server.port=1935"

0
owncast/live.env.tpl Normal file
View File

View File

@ -118,7 +118,7 @@ services:
- "--entrypoints.ts-udp.address=:9987/udp" - "--entrypoints.ts-udp.address=:9987/udp"
- "--entrypoints.ts-tcp.address=:30033" - "--entrypoints.ts-tcp.address=:30033"
# OSP rtmp entrypoints # OSP rtmp entrypoints
- "--entrypoints.osp-rtmp.address=:1935" - "--entrypoints.rtmp.address=:1935"
# Use this CA server for testing # Use this CA server for testing
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" # - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=${EMAIL}" - "--certificatesresolvers.myresolver.acme.email=${EMAIL}"