restreamer setup
This commit is contained in:
@ -4,31 +4,18 @@
|
||||
environmentFiles = [config.age.secrets.restreamer-env.path];
|
||||
# Modified ports to include RTMPS
|
||||
ports = [
|
||||
"127.0.0.1:3006:8080"
|
||||
"127.0.0.1:1935:1935"
|
||||
"127.0.0.1:1945:1945"
|
||||
"127.0.0.1:3006:8080" # Web UI
|
||||
"127.0.0.1:1936:1935" # RTMP
|
||||
];
|
||||
volumes = [
|
||||
"restreamer_data:/core/data"
|
||||
"restreamer_config:/core/config"
|
||||
];
|
||||
volumes = ["restreamer_data:/restreamer/db"];
|
||||
extraOptions = ["--add-host=postgres:10.89.0.1" "--ip=10.89.0.13" "--network=web"];
|
||||
};
|
||||
|
||||
# Traefik configuration
|
||||
services.traefik = {
|
||||
# Add static configuration for entry points
|
||||
staticConfigOptions = {
|
||||
entryPoints = {
|
||||
websecure = {
|
||||
address = ":443";
|
||||
};
|
||||
rtmp = {
|
||||
address = ":1935";
|
||||
};
|
||||
rtmps = {
|
||||
address = ":1945";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dynamicConfigOptions = {
|
||||
http = {
|
||||
services.restreamer.loadBalancer.servers = [
|
||||
@ -51,12 +38,12 @@
|
||||
services = {
|
||||
rtmp-service.loadBalancer.servers = [
|
||||
{
|
||||
address = "localhost:1935";
|
||||
address = "localhost:1936";
|
||||
}
|
||||
];
|
||||
rtmps-service.loadBalancer.servers = [
|
||||
{
|
||||
address = "localhost:1945";
|
||||
address = "localhost:1936";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
Reference in New Issue
Block a user