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

11 lines
206 B
Nix

{ config, ... }:
let
cfg = config.const.host.nginx;
in
{
"paste.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/".extraConfig = cfg.allowLocal;
};
}