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

14 lines
281 B
Nix
Raw Normal View History

2025-01-09 14:35:30 +03:00
{ config, ... }:
let
cfg = config.const.host.nginx;
in
2024-12-02 21:12:45 +03:00
{
"download.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/" = {
proxyPass = "http://127.0.0.1:8112$request_uri";
extraConfig = cfg.allowLocal;
};
};
2024-12-02 21:12:45 +03:00
}