Add frontends

This commit is contained in:
muon 2024-12-10 13:31:39 +00:00
parent 4b3808c042
commit 92528d7121
8 changed files with 87 additions and 58 deletions

View file

@ -71,18 +71,19 @@ in with lib; {
proxy_pass_header Authorization;
'';
# virtualHosts = let
# base = locations: {
# inherit locations;
virtualHosts = let
base = locations: {
inherit locations;
# forceSSL = true;
# enableACME = true;
# };
# proxy = port:
# base { "/".proxyPass = "http://${cfg.ip}:${toString port}/"; };
# in mapAttrs' (name: port:
# nameValuePair ("${name}.${cfg.domain}")
# (proxy port // { default = true; })) cfg.ports;
forceSSL = true;
enableACME = true;
};
proxy = port:
base { "/".proxyPass = "http://${cfg.ip}:${toString port}/"; };
in mapAttrs' (name: port:
nameValuePair ("${name}.${cfg.domain}")
# (proxy port // { default = true; })) cfg.ports;
(proxy port)) cfg.ports;
};
};
}