mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
marisa: Cast!
This commit is contained in:
parent
5459fddb01
commit
a082d2a356
2 changed files with 19 additions and 1 deletions
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue