nix/host/x86_64-linux/home/nginx/Camera.nix

14 lines
277 B
Nix
Raw Normal View History

{ config, ... }:
let
cfg = config.const.host.nginx;
in
2024-12-02 21:12:45 +03:00
{
"camera.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/" = {
extraConfig = cfg.allowLocal;
return = "301 rtsp://10.0.0.12:554/live/main";
};
};
2024-12-02 21:12:45 +03:00
}