Skip to content

Instantly share code, notes, and snippets.

@alexymik
Last active July 19, 2022 06:48
Show Gist options
  • Save alexymik/3100d6d819f56c47a933b8c6fdb72f02 to your computer and use it in GitHub Desktop.
Save alexymik/3100d6d819f56c47a933b8c6fdb72f02 to your computer and use it in GitHub Desktop.
slt relay server setup
version: '3.3'
services:
sls-b3ck-edit:
image: b3ckontwitch/sls-b3ck-edit
container_name: 'srt-relay'
restart: 'always'
ports:
- '30000:30000/udp'
- '8181:8181/tcp'
volumes:
- './sls.conf:/etc/sls/sls.conf'
- '/var/run/docker.sock:/var/run/docker.sock'
- 'sls-b3ck-edit_data:/data'
volumes:
sls-b3ck-edit_data:
srt {
worker_threads 1;
worker_connections 300 ;
http_port 8181;
cors_header *;
log_file logs/error.log ;
log_level info;
record_hls_path_prefix /tmp/mov/sls;
server {
listen 30000;
latency 2000;
domain_player play;
domain_publisher publish;
default_sid publish/live/feed1;
backlog 100;
idle_streams_timeout 3;
app {
app_player live ;
app_publisher live ;
record_hls off;
record_hls_segment_duration 10;
}
}
}
docker run -d -p 30000:30000/udp -p 8181:8181/tcp --name=sls-b3ck-edit --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v sls-b3ck-edit_data:/data b3ckontwitch/sls-b3ck-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment