updating flake and pinning to 22.05
This commit is contained in:
parent
ba27089255
commit
231d82029d
5 changed files with 114 additions and 110 deletions
|
@ -1,39 +1,42 @@
|
|||
{pkgs, lib, config, ...}:
|
||||
let
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
website = pkgs.fetchgit {
|
||||
url = "ssh+git://git@github.com:fsr/fruitbasket.git";
|
||||
rev = "1b380f3bfd48aae2a17aefbbdd0538f09b7d3bcf";
|
||||
sha256 = "";
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
services = {
|
||||
nginx = {
|
||||
virtualHosts = {
|
||||
"stream.ifsr.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = let
|
||||
cfg = config.services.owncast;
|
||||
in {
|
||||
"stream.ifsr.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" =
|
||||
let
|
||||
cfg = config.services.owncast;
|
||||
in
|
||||
{
|
||||
proxyPass = "http://${toString cfg.listen}:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
#streamConfig = ''
|
||||
# server {
|
||||
# listen 1935;
|
||||
# proxy_pass [::1]:1935;
|
||||
# proxy_buffer_size 32k;
|
||||
#}
|
||||
#'';
|
||||
};
|
||||
owncast = {
|
||||
enable = true;
|
||||
port = 13142;
|
||||
listen = "[::ffff:127.0.0.1]";
|
||||
openFirewall = true;
|
||||
rtmp-port = 1935;
|
||||
};
|
||||
#streamConfig = ''
|
||||
# server {
|
||||
# listen 1935;
|
||||
# proxy_pass [::1]:1935;
|
||||
# proxy_buffer_size 32k;
|
||||
#}
|
||||
#'';
|
||||
};
|
||||
owncast = {
|
||||
enable = true;
|
||||
port = 13142;
|
||||
listen = "[::ffff:127.0.0.1]";
|
||||
openFirewall = true;
|
||||
rtmp-port = 1935;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue