blob: c0aa08776da1623e817365a8896544c452da7ffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{config, ... }: {
# services.nix-serve = {
# enable = true;
# secretKeyFile = "/var/secrets/cache-private-key.pem";
# };
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts.cache = {
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
};
};
networking.firewall.allowedTCPPorts = [
config.services.nginx.defaultHTTPListenPort
];
}
|