feat(web-servers/nginx): allow proxy configuration to specify locations
This commit is contained in:
parent
887dff6840
commit
42b3a92d9b
1 changed files with 9 additions and 3 deletions
|
@ -28,9 +28,11 @@ let
|
||||||
addSSL = sslCheck true false;
|
addSSL = sslCheck true false;
|
||||||
useACMEHost = sslCheck (mkRootDomain proxy.source) null;
|
useACMEHost = sslCheck (mkRootDomain proxy.source) null;
|
||||||
acmeRoot = null; # needed for DNS validation
|
acmeRoot = null; # needed for DNS validation
|
||||||
locations."/" = {
|
locations = {
|
||||||
proxyPass = proxy.target;
|
"/" = {
|
||||||
} // proxy.extraConfig;
|
proxyPass = proxy.target;
|
||||||
|
} // proxy.extraConfig;
|
||||||
|
} // proxy.locations;
|
||||||
};
|
};
|
||||||
}) cfg.proxies
|
}) cfg.proxies
|
||||||
);
|
);
|
||||||
|
@ -54,6 +56,10 @@ in
|
||||||
type = attrs;
|
type = attrs;
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
|
locations = lib.mkOption {
|
||||||
|
type = attrs;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue