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

14 lines
273 B
Nix

{ config, ... }:
let
cfg = config.const.host.nginx;
in
{
"pass.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/" = {
proxyPass = "http://[::1]:8001$request_uri";
extraConfig = cfg.allowLocal;
};
};
}