added extra config to services
This commit is contained in:
parent
62abf65e5a
commit
8b39a80849
3 changed files with 56 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue