diff options
Diffstat (limited to 'ops/nixos/www/cache.tvl.su.nix')
-rw-r--r-- | ops/nixos/www/cache.tvl.su.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ops/nixos/www/cache.tvl.su.nix b/ops/nixos/www/cache.tvl.su.nix new file mode 100644 index 000000000000..182306bebff1 --- /dev/null +++ b/ops/nixos/www/cache.tvl.su.nix @@ -0,0 +1,26 @@ +{ 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 /etc/secrets/nix-cache-key.pub; + } + + location / { + proxy_pass http://localhost:${toString config.services.nix-serve.port}; + } + ''; + }; + }; +} |