2fe8d724d7
... and also the public key, just to keep the distribution mechanism the same. Change-Id: Ief14daf9344c0fb99eeb5789c1ec9bfb1f12bee0
26 lines
496 B
Nix
26 lines
496 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./base.nix
|
|
];
|
|
|
|
config = {
|
|
services.nginx.virtualHosts."cache.tvl.su" = {
|
|
serverName = "cache.tvl.su";
|
|
serverAliases = [ "cache.tvl.fyi" ];
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
extraConfig = ''
|
|
location = /cache-key.pub {
|
|
alias /run/agenix/nix-cache-pub;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://localhost:${toString config.services.nix-serve.port};
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|