playing wiht streaming seutp
This commit is contained in:
parent
6aec046f12
commit
ea8e8ae966
38
modules/stream.nix
Normal file
38
modules/stream.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{pkgs, lib, config, ...}:
|
||||
let
|
||||
website = fetchFromGithub {
|
||||
owner = "fsr";
|
||||
repo = "ese20-ansible";
|
||||
rev = "1b380f3bfd48aae2a17aefbbdd0538f09b7d3bcf";
|
||||
sha256 = "";
|
||||
};
|
||||
in {
|
||||
services = {
|
||||
nginx = {
|
||||
virtualHosts = {
|
||||
"stream-frontend.quitte.tassilo-tanneberger.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
root = "${website}/roles/stream_frontend/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
"owncast.quitte.tassilo-tanneberger.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = let
|
||||
cfg = config.services.owncast;
|
||||
in {
|
||||
proxyPass = "http://${toString cfg.listen}:${toString cfg.post}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
owncast = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue