added extra config to services

This commit is contained in:
Leyla Becker 2025-03-07 18:18:37 -06:00
parent 62abf65e5a
commit 8b39a80849
3 changed files with 56 additions and 1 deletions

View file

@ -31,6 +31,13 @@ in {
description = "where should this host point to";
};
websockets = lib.mkEnableOption "should websockets be proxied";
extraConfig = lib.mkOption {
type = lib.types.lines;
default = "";
description = ''
These lines go to the end of the upstream verbatim.
'';
};
};
}));
default = {};
@ -53,6 +60,7 @@ in {
locations."/" = {
proxyPass = value.target;
proxyWebsockets = value.websockets;
extraConfig = value.extraConfig;
};
})
config.host.reverse_proxy.subdomains;