2024-05-08 20:57:07 +00:00
|
|
|
{
|
|
|
|
flake,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-05-08 17:47:47 +00:00
|
|
|
services.nginx.virtualHosts."stream.${config.pub-solar-os.networking.domain}" = {
|
2023-10-29 02:35:35 +00:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2023-10-29 22:04:11 +00:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:5000";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
2023-10-29 02:35:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Owncast
|
|
|
|
services.owncast = {
|
|
|
|
enable = true;
|
|
|
|
user = "owncast";
|
|
|
|
group = "owncast";
|
|
|
|
# The directory where owncast stores its data files.
|
|
|
|
dataDir = "/var/lib/owncast";
|
|
|
|
# Open the appropriate ports in the firewall for owncast.
|
|
|
|
openFirewall = true;
|
|
|
|
# The IP address to bind the owncast web server to.
|
|
|
|
listen = "127.0.0.1";
|
|
|
|
# TCP port where owncast rtmp service listens.
|
|
|
|
rtmp-port = 1935;
|
|
|
|
# TCP port where owncast web-gui listens.
|
|
|
|
port = 5000;
|
|
|
|
};
|
|
|
|
}
|