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

14 lines
306 B
Nix

{ config, ... }:
let
cfg = config.const.host.nginx;
in
{
"printer.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/" = {
proxyPass = "http://[fd09:8d46:b26:0:9e1c:37ff:fe62:3fd5]:80$request_uri";
extraConfig = cfg.allowLocal;
};
};
}