Add owncast and fix rtmp routes
This commit is contained in:
parent
5116449f7e
commit
d5915f7f61
@ -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
0
owncast/config.yaml
Normal file
31
owncast/docker-compose.yml
Normal file
31
owncast/docker-compose.yml
Normal 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
0
owncast/live.env.tpl
Normal 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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user