mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-18 02:55:12 -05:00
feat: reformated services
This commit is contained in:
parent
c28066d2d3
commit
d73b50cb7b
19 changed files with 5 additions and 198 deletions
38
nixos/modules/services/config/owncast.nix
Executable file
38
nixos/modules/services/config/owncast.nix
Executable file
|
@ -0,0 +1,38 @@
|
|||
{flake, ...}: let
|
||||
inherit (flake.config.services.instances) owncast web;
|
||||
service = owncast;
|
||||
localhost = web.localhost.address1;
|
||||
host = "${service.subdomain}.${web.domains.url1}";
|
||||
in {
|
||||
services = {
|
||||
owncast = {
|
||||
enable = true;
|
||||
listen = localhost;
|
||||
port = service.ports.port0;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
caddy = {
|
||||
virtualHosts = {
|
||||
"${host}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy ${localhost}:${toString service.ports.port0}
|
||||
|
||||
tls ${service.ssl.cert} ${service.ssl.key}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
service.ports.port0
|
||||
service.ports.port1
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# OBS Server rtmp://192.168.50.140:1935/live
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue