marisa: Cast!

This commit is contained in:
kat witch 2021-11-11 19:48:47 +00:00
parent 5459fddb01
commit a082d2a356
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 19 additions and 1 deletions

View file

@ -59,6 +59,11 @@
}; };
}; };
services.owncast = {
enable = true;
port = 8082;
};
network = { network = {
addresses.public = { addresses.public = {
enable = true; enable = true;
@ -75,7 +80,7 @@
firewall = { firewall = {
public = { public = {
interfaces = singleton "ens3"; interfaces = singleton "ens3";
tcp.ports = singleton 52969; tcp.ports = [ 1935 52969 ];
}; };
private.interfaces = singleton "yggdrasil"; private.interfaces = singleton "yggdrasil";
}; };

View file

@ -5,7 +5,20 @@
cname = { inherit (config.network.addresses.public) target; }; cname = { inherit (config.network.addresses.public) target; };
}; };
deploy.tf.dns.records.services_owncast = {
inherit (config.network.dns) zone;
domain = "cast";
cname = { inherit (config.network.addresses.public) target; };
};
services.nginx.virtualHosts = { services.nginx.virtualHosts = {
"cast.${config.network.dns.domain}" = {
forceSSL = true;
enableACME = true;
locations = {
"/".proxyPass = "http://127.0.0.1:8082";
};
};
"media.${config.network.dns.domain}" = { "media.${config.network.dns.domain}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;