Add rtmp stuff

This commit is contained in:
Stephan Porada 2021-04-30 18:35:00 +02:00
parent 995262ebb2
commit 698cef6d3d
2 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,13 @@ services:
- "traefik.http.routers.osp.tls=true"
- "traefik.http.routers.osp.tls.certresolver=myresolver"
- "traefik.http.services.osp.loadbalancer.server.port=80"
# RTMP specific
- "traefik.tcp.routers.rtmpcast.entrypoints=osp-rtmp"
- "traefik.tcp.routers.rtmpcast.rule=HostSNI(`osp.sporada.eu`)"
- "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"
networks:
- default
restart: unless-stopped

View File

@ -115,6 +115,8 @@ services:
# TS3 entrypoints
- "--entrypoints.ts-udp.address=:9987/udp"
- "--entrypoints.ts-tcp.address=:30033"
# OSP rtmp entrypoints
- "--entrypoints.osp-rtmp.address=:1935"
# Use this CA server for testing
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=${EMAIL}"
@ -153,6 +155,8 @@ services:
- "9987:9987/udp"
- "10011:10011"
- "30033:30033"
# OSP rtmp ports
- "1935:1935"
volumes:
# For certificate
- "./volumes/letsencrypt/acme.json:/letsencrypt/acme.json"