blob: 3104ab69ce44708b2635d0f29f29817c2a59a854 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ config, ... }:
{
services.nginx.virtualHosts."stream.emile.space" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://127.0.0.1:${toString config.services.owncast.port}";
proxyWebsockets = true;
};
};
};
services.owncast = {
enable = true;
openFirewall = true;
listen = "0.0.0.0";
dataDir = "/var/lib/owncast";
rtmp-port = config.emile.ports.stream_rtmp;
port = config.emile.ports.stream; # web interface
};
}
|