Merge pull request 'flora-6: init owncast' (#225) from infra-init-owncast into infra
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #225 Reviewed-by: hensoko <hensoko@gssws.de>
This commit is contained in:
commit
a63d3390e1
|
@ -107,6 +107,14 @@
|
||||||
reverse_proxy :4000
|
reverse_proxy :4000
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
"stream.pub.solar" = {
|
||||||
|
logFormat = lib.mkForce ''
|
||||||
|
output discard
|
||||||
|
'';
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy :5000
|
||||||
|
'';
|
||||||
|
};
|
||||||
"list.pub.solar" = {
|
"list.pub.solar" = {
|
||||||
logFormat = lib.mkForce ''
|
logFormat = lib.mkForce ''
|
||||||
output discard
|
output discard
|
||||||
|
|
|
@ -20,6 +20,7 @@ in {
|
||||||
./keycloak.nix
|
./keycloak.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./mailman.nix
|
./mailman.nix
|
||||||
|
./owncast.nix
|
||||||
|
|
||||||
profiles.base-user
|
profiles.base-user
|
||||||
profiles.users.root # make sure to configure ssh keys
|
profiles.users.root # make sure to configure ssh keys
|
||||||
|
|
24
hosts/flora-6/owncast.nix
Normal file
24
hosts/flora-6/owncast.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue