23 lines
416 B
Nix
23 lines
416 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
|
|
{
|
|
services.nix-serve = {
|
|
enable = true;
|
|
secretKeyFile = "/var/cache-priv-key.pem";
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"odyssey.mesh.vimium.net" = {
|
|
locations."/".proxyPass =
|
|
"http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
|
};
|
|
};
|
|
};
|
|
}
|