mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add frontends
This commit is contained in:
parent
4b3808c042
commit
92528d7121
8 changed files with 87 additions and 58 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue