diff --git a/osp/docker-compose.yml b/osp/docker-compose.yml index d6490ab..4c65bc6 100644 --- a/osp/docker-compose.yml +++ b/osp/docker-compose.yml @@ -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 diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml index 3278183..f591041 100644 --- a/traefik/docker-compose.yml +++ b/traefik/docker-compose.yml @@ -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"