about summary refs log tree commit diff
path: root/nix/hosts/corrino/www/stream.emile.space.nix
blob: 7340d4fb596ed15f0c8dbe0b88beba51efa9a088 (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
{ ... }:

{
  services.nginx.virtualHosts."stream.emile.space" = {
    forceSSL = true;
    enableACME = true;

    locations = {
      "/" = {
        proxyPass = "http://127.0.0.1:8080";
        proxyWebsockets = true;
      };
    };
  };

  services.owncast = {
    enable = true;
    openFirewall = true;
    listen = "0.0.0.0";
    dataDir = "/var/lib/owncast";
    rtmp-port = 1935;
    port = 8080; # web interface
  };
}