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

14 lines
305 B
Nix
Raw Normal View History

{ config, ... }:
let
cfg = config.const.host.nginx;
in
2024-12-02 21:12:45 +03:00
{
"router.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/" = {
proxyPass = "http://[fd09:8d46:b26:0:9e9d:7eff:fe8e:3dc7]:80$request_uri";
extraConfig = cfg.allowLocal;
};
};
2024-12-02 21:12:45 +03:00
}