2021-04-04 20:24:34 +02:00
|
|
|
{ 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 {
|
2021-12-10 19:23:05 +01:00
|
|
|
alias /run/agenix/nix-cache-pub;
|
2021-04-04 20:24:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2024-09-26 19:04:53 +02:00
|
|
|
proxy_pass http://${config.services.depot.harmonia.settings.bind};
|
2021-04-04 20:24:34 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|