Merge pull request 'feat: owncast' (#30) from feat/owncast into main
Reviewed-on: pub-solar/infra-new#30 Reviewed-by: b12f <hello@benjaminbaedorf.eu>
This commit is contained in:
commit
f55820414e
|
@ -15,7 +15,10 @@ in {
|
||||||
proxyCachePath.cache = {
|
proxyCachePath.cache = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
30
hosts/nachtigall/apps/owncast.nix
Normal file
30
hosts/nachtigall/apps/owncast.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
flake,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.nginx.virtualHosts."stream.pub.solar" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:5000";
|
||||||
|
};
|
||||||
|
|
||||||
|
# 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