restreamer setup

This commit is contained in:
m3tam3re
2025-03-15 14:23:47 +01:00
parent 779473317d
commit e93bdf20a3
6 changed files with 50 additions and 49 deletions

View File

@ -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";
}
];
};